#Pravin - PaymentMethod
1 messages · Page 1 of 1 (latest)
no, i have just created it against my connect accoount
And how are you integrating Stripe? With Checkout Session, PaymentIntent, something else?
PaymentIntent
Then you can use a SetupIntent to attach a Payment Method to a customer: https://stripe.com/docs/api/setup_intents
no no
what i want
While creating Customer I can use code like below
CustomerCreateParams params = stripeMapper.getCreateCustomerParam(paymentRequest.getEmail(),
paymentRequest.getPhoneNumber(),
paymentRequest.getPaymentMethodId());
here i am creating params and passing payment Method to Customer object while creating Customer
======
if i want to add one more payment method to same custome. How can update that customer object
@waxen peak hope you get my question
So one option is to use attach: https://stripe.com/docs/api/payment_methods/attach
However we don't recommend using that. Instead you should use a SetupIntent (you pass the customer ID + the Payment Method ID)