#mekhami-donation-sub
1 messages · Page 1 of 1 (latest)
hello, you want to use PaymentElement + Subscriptions
that way you have a form (PaymentElement) on your own page and you create a Subscription which runs recurring payments
give a read through this (its long but has all the details) https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
and this is the overarching doc on Subscription states: https://stripe.com/docs/billing/subscriptions/overview#how-payments-work-subscriptions
It looked like, from reading this, that I need to create price objects for these subscriptions. I'd end up having to just create a price object arbitrarily for every price point my users end up wanting to donate at. Is that normal?
I'd end up having to just create a price object arbitrarily for every price point my users end up wanting to donate at. Is that normal?
you can passprice_datainline when creating the Subscription. That way you don't have to create a Price up front
and works with your donations use-case
this will create Price objects under the hood in your account, you can just ignore them really
but it allows you to create a Price in-line
okay that's useful. and can I associate all of these to one product id? or do i need to create products as well?
perfect. okay i'll take this approach and see how far i get. thank you 🙂