#kimvincible_code

1 messages ¡ Page 1 of 1 (latest)

molten dewBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1276497919423287357

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fringe hatch
#

Hi, let me help you with this.

#

It depends how you're integrated on the backend exactly, but you might or might not need to make any change.

solid berry
#

ah got it. Sorry if it is taking a whole for me to write how we integrated exactly

#

yeah, that's my plan actually

So to give more context how we integrated:

  1. Our add card page returns a card with paymentMethodCreateParams
  2. Within our payment flow, we do the following steps
    • call backend API SetupStripeRecurringCardPaymentRequest to get clientsecret and a recurringPaymentID
    • we use the client secret along with paymentMethodCreateParams to call Stripe.confirmSetupIntent
    • This should return a SetupIntent object that has a paymentMethodID inside
    • We use both recurringPaymentID and paymentMethodID to call our backend again (completeStripeRecurringCardPayment)
  3. Then we just call one last API enableAutoPurchase which enables our feature itself
#

so i guess maybe what i am asking is if we can jsut get paymentMethodCreateParams somehow from the new payment flow?

fringe hatch
#

Are you building a Subscriptions integration?

solid berry
#

not sure what are the terminologies but it is recurring. backend controls the recurring part

#

you don't pay immediately i guess

fringe hatch
#

backend controls the recurring part
Are you using Stripe Billing? Or you have your own billing engine?

solid berry
#

ah that one i need to double check. but i think we do

#

sorry if unsure. most of the backend stuff are abstracted on our end so i had to double check things

fringe hatch
#

When you build a Stripe integration it's important to be aware of what's happening both on server and the client.

solid berry
#

i see. It seems we are using our own billing engine. None of the stuff in Stripe Billing is used.

fringe hatch
#

So you're using SetupIntents to collect a PaymentMethod?

solid berry
#

yeah

fringe hatch
solid berry
#

ok got it. thank you

fringe hatch
#

Happy to help.