#maf
1 messages · Page 1 of 1 (latest)
What integration path do you use today to handle payments?
Hi, ynnoj. The system I need to integrate with uses charge object to identify the payment... I think the system retrieves all the successful charges from time to time to make it work.
The system identifies customer, address and subscription from charge object.
Ok, but which Stripe UI does your system use to collect payments?
Can you share a ch_xxx ID for a one-time payment?
Sure.. Just a sec
ch_3MdxwTEV0o52HUdW1NqOv7mB
What is a Stripe UI? Checkout page, for instance?
Yep
Yes.. So.. I'm using checkout page... But algo I use webhooks in my system...
also*
I was thinking on create a metadata in my charge object
Ok, so that ch_xxx was created via a Checkout Session yep
What language are you using?
nodejs
Ok, so there's no direct link from the Charge to the Checkout Session. Instead you'll need to use the associated payment_intent field on ch_xxx:
stripe.checkout.sessions.list({
payment_intent: 'pi_xxx',
expand: ['line_items.price.product']
})
That will return the full Checkout Session object, including the line_items (https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-line_items) field which has all the product info
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Nice, ynnoj. Thank you. I will try to pass it to the devs. Maybe they can implement it... Otherwise i will try to make it work using metadata in ch object.
Thank you very much!!! You were really helpful
np!