#alcakes

1 messages · Page 1 of 1 (latest)

tough bearBOT
deep knoll
outer gulch
#

@deep knoll I'm not clear on "Create a server-side endpoint that creates the Checkout Session and serves the pages." since the conversion happens off page, I just want the step "payment_intent.succeeded" to populate payment amount as well as conversion confirmation. Can Stripe send people back to our site for a Thank you page after the conversion? that would simplify things...

deep knoll
outer gulch
deep knoll
#

we mainly help developers who want to directly integrate with Stripe APIs on this channel so i'm not really familiar with what 3rd party tools are available for you to use. You can always try them out and see if it works for you

outer gulch
#

Thanks

#

@deep knoll - for this... I'm still not clear... will it go back to our site? Or will Stripe generate the thank you at the bottom? (while still recording the transaction and amount?). <html>
<head>
<!-- START GOOGLE ANALYTICS -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=<GOOGLE_ANALYTICS_CLIENT_ID>"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "<GOOGLE_ANALYTICS_CLIENT_ID>");
</script>
<!-- END GOOGLE ANALYTICS -->
<title>Thanks for your order!</title>
</head>
<body>
<h1>Thanks for your order!</h1>
<p>
We appreciate your business! If you have any questions, please email
<a href="mailto:orders@example.com">orders@example.com</a>.
</p>
</body>
</html>

deep knoll
#

In short, this is the success.html page. You would implement the success.html and cancel.html page on your website. Then when creating a Checkout Session, you would pass in the relevant urls for success_url and cancel_url

outer gulch
#

@deep knoll - got it! so Stripe will do this automatically if this code is placed on those pages? or is it more involved than that? (we don't care about cancel page, only success page)