#Pravin-Connect

1 messages · Page 1 of 1 (latest)

charred dew
#

Hi there, you can use either PaymentIntent with setup_future_usage or SetupIntent API to save the payment method.

hallow crest
#

can you share any examples ?

#

i am doing payment through PaymentIntent as well as Charge API

charred dew
#

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'
});```
hallow crest
#

Thank you

#

let me check

#

thank you