#maf

1 messages · Page 1 of 1 (latest)

flat wharfBOT
soft spade
#

What integration path do you use today to handle payments?

winter ridge
#

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.

soft spade
#

Ok, but which Stripe UI does your system use to collect payments?

#

Can you share a ch_xxx ID for a one-time payment?

winter ridge
#

Sure.. Just a sec

#

ch_3MdxwTEV0o52HUdW1NqOv7mB

#

What is a Stripe UI? Checkout page, for instance?

winter ridge
#

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

soft spade
#

Ok, so that ch_xxx was created via a Checkout Session yep

#

What language are you using?

winter ridge
#

nodejs

soft spade
#

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']
})
winter ridge
#

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

soft spade
#

np!