#Mikail-recurring-donations

1 messages · Page 1 of 1 (latest)

white jay
#

HI there 👋 do you already have an existing integration that you're looking to add this functionality to, or is this a new project?

flint pasture
#

This is a new project that is in test

white jay
#

Gotcha, and have you already selected an integration path that you plan to use, such as Checkout, or Stripe Elements?

flint pasture
#

Stripe Connect (standard account)

#

We own a platform and want to offer this functionality to our merchants

white jay
#

So the outline of what you need to do is:

  1. Create a form that allows your end-customers to define how much they'd like to donate
  2. Ingest that amount into your backend, and create the corresponding payment objects
  3. Have the customer complete the payment process.

If you're leveraging Checkout Sessions for example, then you can use the price_data parameter to dynamically define the price for the session during creation:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data

flint pasture
#

Yes this is correct but our pain point is recurring payments

#

Because stripe requires a subscription object, but the donation amount is custom

white jay
#

Can you elaborate on what you've tried so far and where you got stuck?

flint pasture
#

We tried to create a subscription object but it requires a predefined price object

#

that’s the problem we are facing right now

white jay
flint pasture
#

thank you!

#

I will look into this, is it okay to reply in this thread if something else regarding this comes up?

#

until it closes of course

white jay
#

Sure, I'm about to step away, but will leave the thread open in case there are additional questions that arise while you try that out.

flint pasture
#

thank you very much

#

appreciate it a lot