Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add better information about `<PAYMENT INTENT ID>` in the quick checkout guide (#12720)

Damian Kaczmarczyk8215cc20e0bd
diff --git a/docs/api-reference/tutorials/quick-checkout-with-stripe.mdx b/docs/api-reference/tutorials/quick-checkout-with-stripe.mdx
index 1aea2b9fdf..a67557b754 100644
--- a/docs/api-reference/tutorials/quick-checkout-with-stripe.mdx
+++ b/docs/api-reference/tutorials/quick-checkout-with-stripe.mdx
@@ -251,6 +251,10 @@ Now you should make several more calls to the backend
Thereafter, you should confirm the payment intent using the Stripe library; this depends on your platform/language.
+<Warning>
+`<PAYMENT INTENT ID>` should be Spree's internal payment intent ID, which you will receive when you create the payment intent. Do not confuse it with Stripe's payment intent ID.
+</Warning>
+
If you like to redirect the user to Spree's order summary page, then set the `return_url` when confirming the payment intent to `<SHOP URL>/stripe/payment_intents/<PAYMENT INTENT ID>`. This will check if the payment intent is confirmed, move the order to the complete state, and redirect the user to the order summary.
If you like to make the order summary page by yourself, then after confirming the payment intent in Stripe, make this request: