#MarkoBoras
1 messages · Page 1 of 1 (latest)
Hi. I think you asked this earlier: <#dev-help message>
Was there anything wrong with the answer?
There I was expadning checkout session object
Here I have payment intent object
where I am trying
const paymentIntent = await stripe.paymentIntents.retrieve(
"xxxx",
{
expand: ["line_items"],
}
);
You don't have items in PaymentIntent.
You just pay a fixed amount.
How are you creating it?
stripe checkout has created it
ok if I don't have items in payment intent
can I somehow extract data as checkout summary in image above
You need to get the Checkout Session by payment_intent, and then expand line_items: https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent
Please, let me know if you have any other questions.