#sam_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ 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/1301928601012142205
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ if you want to let another integration control creating the payments for your Customers, then it sounds like you're just focusing on collecting payment method details from your customers. But let me know if it seems I've misunderstood what you're trying to accomplish.
That is possible via Checkout Sessions and Elements. Our guide for setting up payment methods for future usage, which walks through that flow for several integration paths, can be found here:
https://docs.stripe.com/payments/save-and-reuse?platform=web
hey, thanks. so as part of the checkout process I'd like the integration to bill the card, and if that fails then the customer would be prompted to go back to the beginning with an error message, if that makes sense. So I'm trying to deeply integrate the 3rd-party vendor into the checkout process and I'm wondering if I can "hook" that it
*hook that in
No, you can't call out to the third-party while your Customer is still in the Checkout Session.
The customer would complete the setup mode Checkout Session and be taken to your success_url. Then you could do your checks and take them to a new Checkout Session if needed.
I think using an Embedded Checkout Session (the second tab in that guide) may get you a bit closer since you can embed the Checkout Session on your page. But using the Payment Element is likely the best way to make this look more seamless.
thanks! I think that makes sense
Any time!