#si_best-practices

1 messages ¡ Page 1 of 1 (latest)

fallen girderBOT
#

👋 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/1410346928495005697

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

versed hill
#

Hello, thanks for flagging that out of date doc. I'll make sure we remove update it. The modern version of that doc is here: https://docs.stripe.com/payments/save-and-reuse
Basically you create something called a SetupIntent and then present the user our Payment Element. The Payment Element can use the setup intent to save the card, then when you want to charge it later you create and confirm a payment intent with the saved payment method
https://docs.stripe.com/payments/save-and-reuse#charge-saved-payment-method

slender halo
#

Oh perfect. Thanks, I'll pursue and come back if I have more questions

fallen girderBOT
versed hill
#

Sounds good to me! I also should have mentioned that our hosted Checkout page can save PM info, but it can't show specific amounts, so there isn't a good way to say "Pay X amount if this project gets backed" or your equivalent.
And one last thing upfront is that we have two main variants of that flow if you are using Elements. They're helpful if you want to run business logic to do things like check card brand before completing the process. The card brand example probably isn't that helpful to you but the flexibility may be helpful in some way.
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=setup
https://docs.stripe.com/payments/finalize-payments-on-the-server?platform=web&type=setup