#Pravin-Connect
1 messages · Page 1 of 1 (latest)
Hi there, you can use either PaymentIntent with setup_future_usage or SetupIntent API to save the payment method.
can you share any examples ?
i am doing payment through PaymentIntent as well as Charge API
OK, assuming you are creating direct charge, here is how you can save the payment method on the connected account with PaymentIntent API.
amount: 2000,
currency: 'usd',
customer: 'cus_123',
payment_method_types: ['card'],
setup_future_usage: 'off_session',
},{
stripeAccount: 'CONNECTED_ACCOUNT_ID'
});```
You can learn more about making API calls on connected accounts here https://stripe.com/docs/connect/authentication