#ks56_
1 messages · Page 1 of 1 (latest)
If the payment methods have been saved with Stripe, the payment method list should be retrieved from the backend and pass to your frontend. Here's the guide on you can do it: https://docs.stripe.com/payments/save-during-payment?platform=web#charge-saved-payment-method
For subscription flow im following
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
But i may have my saved cards and i also want if i dont have card client shoes payment element
How can i do thay
If there is an existing payment method on the customer, it can be set under default_payment_method when creating a subscription: https://docs.stripe.com/api/subscriptions/create#create_subscription-default_payment_method, so that you don't need to collect a new payment method from the customer again
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But subscription will be created first and then we show payment card list if it exists
And then on payment card selection payment willl be dont on client side