#albertomendez_me

1 messages · Page 1 of 1 (latest)

dense capeBOT
spiral fiber
icy frost
#

It's one of the ones I've been following, but it may currently be mixed with other guides, since I've been struggling with this for a while and right now I may have it a bit messy, so more than anything I'd like to confirm the possibility of doing it and clarify concepts so I can get a general idea of what the process would be like (theoretically) to be able to integrate postponed payments (collect the card details for make the charge at a later date) and store the cards that the user enters so that in future purchases they can simply select it. I use a platform account and the shops that will sell on my service will use connected accounts. How should I do? Because I don't find the way to keep the card details related to the user of the connected account

spiral fiber
#

If you saved payment details for a customer to the platform account (using PaymentIntents and setup_future_usage or SetupIntents), you should be able to use the guide above to clone those payment detals to a connected account. We'll return a PaymentMethod ID when you make a call to the PaymentMethod create API. You should store this ID on your end and map to any relevant IDs on your end (likely connected account ID and customer ID)

icy frost
#

Yes, but if the customer adds two different cards (one today and one the next day) how can I relate both to the connected account keeping in mind every connected account is different and I have no way to relate them to the platform customer?

spiral fiber
#

I'm not quite sure I follow. You'd keep some database that relates the concept of a customer from your app to the customer ID on the platform; I assume this would be a 1:1 relationship. Then, you'd keep track of the relationship between the customer ID on your platform to the cloned PMs, connected accounts, and customers

icy frost
#

I am already storing the Stripe Customer ID next to the user of my app, should I store the cloned payment methods next (via a 1:n relationship table for example) to it in my database too?

#

Or can I retrieve them in any way by just providing the Stripe Customer ID?

spiral fiber
#

Yes, I recommend storing the cloned payment method IDs as well so you don't have to retrieve them later. You could retrieve them by making a call as the connected account to list a customer's payment methods but you shouldn't have to do this every time

icy frost
#

Ok, thank you very much for your help, I will try your approach. Have a nice day