#Rian ROnald
1 messages ยท Page 1 of 1 (latest)
Hi ๐
You would need to save the Discord ID to the payment in your integration.
I have a custom field where they enter their discord id when making the payment is there a way to grab that?
How are you creating the charge?
What Stripe product are you using?
And where is the custom field?
On the payment page
How are you getting there?
With the buy link
Are you creating a Stripe Checkout Session?
no
unless stripe does it on their end
I'm using the link that they provide to share to people so they can purchase the product/service
Do you have an ID of a payment you can share?
No that's the payment Method. The Payment Intent (pi_) or Charge(ch_) are what I'm looking for here
Okay this data is being saved to the Checkout Session related to this payment
You can see it in the data returned in this event https://dashboard.stripe.com/test/events/evt_1NgaTLCrPeAk2bQMVaG1ijqT
So how can I retrieve that
You can look up the Checkout Session object in the API. You can filter them using the Payment Intent ID: https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent
Is there a way check for this when a payment is made?
Hi, what does 'check for this' when payment is made mean? After the payment, you can listen to 'checkout.session.completed' event https://dashboard.stripe.com/test/events/evt_1NgaTLCrPeAk2bQMVaG1ijqT and attain this data.
@wanton portal @jade wave Got what I was looking for working thank you guys! ๐