#charlie
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Payment Intents don't have items
Ok. That explains why i cant find it. So how come in the front end i can see payments with items?
Checkout session
Can you share an example session id or payment intent id?
So what im trying to do is get that subscription from the payment intent id - pi_3O8Q10Cyolsmbhuu1ZoWVLhe
That's a one-time payment checkout session not a subscription checkout session
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ok. So how would I, from the payment intent id, get to the product that was payed for?
Look at the above link to the request
You didn't pass any product id
Just an amount
Within price_data
What are you really trying to retrieve?
Which field specifically?
im trying to get the highlighted information from the payment intent id -
So just the amount?
Since these are 1-time payments (and generate payment intents) there's not really a great way to do this unless you generate an invoice
If you need to have it on the payment intent, then recommend also setting it on the payment intent's metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Because payment intents just have an amount (no concept of items)
Otherwise you can generate invoices: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation-enabled
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And listen to those corresponding events instead