#charlie

1 messages · Page 1 of 1 (latest)

proven coralBOT
#

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.

inland dune
#

Payment Intents don't have items

crimson veldt
#

Ok. That explains why i cant find it. So how come in the front end i can see payments with items?

inland dune
#

What do you mean?

#

Where is this? How are you accepting payments?

crimson veldt
#

Checkout session

inland dune
#

Can you share an example session id or payment intent id?

crimson veldt
#

So what im trying to do is get that subscription from the payment intent id - pi_3O8Q10Cyolsmbhuu1ZoWVLhe

inland dune
#

That's a one-time payment checkout session not a subscription checkout session

crimson veldt
#

Ok. So how would I, from the payment intent id, get to the product that was payed for?

inland dune
#

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?

crimson veldt
#

im trying to get the highlighted information from the payment intent id -

inland dune
#

So just the amount?

crimson veldt
#

No the 1 year item

#

What was paid for

inland dune
#

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

#

Because payment intents just have an amount (no concept of items)

#

And listen to those corresponding events instead

crimson veldt
#

Oh really.

#

The Ui makes it looks like there is a link as it lists the items under "Items" on the payment intent page.