#joels

1 messages · Page 1 of 1 (latest)

finite kilnBOT
white reef
#

I think that should be possible. The metadata would have to exist on the Payment Intent object. You would then use the email you grab from it to make a call to list all customer by email: https://stripe.com/docs/api/customers/list, which would give you the ID of the customer to pass into the Payment Intent

idle tinsel
#

ok cool...thanks! the problem i'm having now is that the data sent over from another platform to stripe for some reason adds the email to metadata instead of inside the billing details...and stripe doesn't know to grab it...

#

so then i get 'guest accounts' that are really just existing accounts

#

so if i add the customer id into the payment intent object, then that payment_intent will then automatically be attached to the customer...is that correct?

white reef
#

Ahhhh, okay. Yes, the Customer would then be attached to the Payment Intent and any subsequent requests that require a customer would be satisfied.

idle tinsel
#

ok cool that was my next question 🙂

#

i think that's all then...but if i have questions during implementation do i add them to this thread? or just start a new one?

white reef
#

Just start a new one in that case. We archive threads after a short time of inactivity

idle tinsel
#

k thanks @white reef