3 ms·
> Like, why do we even need Payment Intent? Could be to support payment methods in Europe and countries other than the US?
by wnevets 5y ago
> Like, why do we even need Payment Intent?
Could be to support payment methods in Europe and countries other than the US?
- gjsman-1000 5y agoI am referring here to Stripe Checkout. https://stripe.com/payments/checkout https://stripe.com/payments/checkout It's supposed to make payments easier with a Stripe-hosted payments page. However, creating a server-side Checkout session, and then getting line items from an order, is an unnecessarily convoluted series of requests.
- WillPostForFood 5y agoYou can use "expand" to get multiple queries into a single request, kind of like a SQL join. I don't know if this is exactly your use case, but when we get a Checkout session, and want the customer and purchase line items, it looks like this (using the Stripe Ruby library). Stripe::Checkout::Session.retrieve({ id: session_id, expand: ['line_items', 'customer'] })