#_.undefined.
1 messages · Page 1 of 1 (latest)
Are you trying to do this using Stripe hosted checkout page or Custom payment flow using Stripe Elements?
stripe elements.
One way you could do this is
1/ Use SetupIntents API to store the payment method
https://stripe.com/docs/payments/save-and-reuse
2/ Redirect your customers to the donation page
3/ Once they choose the amount they want to donate, call the subscriptions API, create in-line price using items.price_data parameter and pass the customer that was created in step 1 (along with their payment method)
https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data
Thank you. I will try this.
👍