#LorenTheAdult-payments-orders
1 messages · Page 1 of 1 (latest)
Is there a reason you're using orders? This is a really legacy/old API and shouldn't be used for new integrations
No there isn't a specific reason. Perhaps it was originally implemented in an attempt to track specific items that are being paid for by a customer.
When visiting the portal, I can see payment and that they've succeeded. But I am unable to see what items were on the payment. On a specific payment page I can view the receipt, but the receipt doesn't have the items that a user purchased. Is there a way to link this data to a payment intent (even if it's not through legacy orders?)
How are you generating the Payment Intent? Are you using Checkout, or just working directly with Payment Intents?
Looking now...
Appears to be using the react stripe client library @stripe/react-stripe-js. Using that to call stripe.confirmCardPayment().
Payload looks like this:
const result = await stripe.confirmCardPayment(
stripeClientSecret,
{
payment_method: {
card,
billing_details: {
name: `${firstName} ${lastName}`,
},
},
setup_future_usage: 'off_session',
},
{
handleActions: false,
}
)
Perhaps I need to add more data to the input of that method?
So it looks like you're working with plain Payment Intents, which don't have the concept of "line items". If you need to keep track of line items you'll need to store that information on your end, or move to one of our other solutions like Checkout or Invoices which do keep track of this for you
Ok gotcha. I'll check out the documentation for Checkout and Invoices and see what the differences are and if either of those satisfy the requirements.
I am seeing that the stripe library that we are already using has some support for "Stripe Elements".
https://stripe.com/docs/stripe-js/react
But I am not seeing if this leverages "Checkout" or "Invoices" that you mentioned above.
(Pretty sure I don't want Invoices which is geared toward repeat payments. This is one-time purchase online store)
That's because you don't need any specific React components for Checkout - you can see any example of how to use Checkout w/ React in our quickstart guide https://stripe.com/docs/checkout/quickstart (make sure to select "React" and "Prebuilt Checkout page"
Oh I see. The Stripe Checkout feature redirects users to stripe to complete the Checkout.
Yup!