#edge-customers-multiple

1 messages · Page 1 of 1 (latest)

sick quartzBOT
spice plinth
#

edge-customers-multiple

#

@viral girder there isn't really a good way to "share" a PaymentMethod object across multiple separate Customers in our API. So you likely want a Customer that represents the household instead

viral girder
#

If we try to create a payment and send customer[1] and paymentMethod[0] that is attached to customer[0] will it return error or proccess?

spice plinth
#

Have you simply tried in Test mode? You'd get your answer in seconds. But if [0] and [1] are different Customer ids cus_123 then it would error

viral girder
#

ok, thank you.

#

Can we create a paymentMethod and not attach it to a customer so it could be used on multiple accounts?

spice plinth
#

So if you have say 2 parents and 2 kids, you either need to collect card details 4 times (once per Customer) or you need a "family" Customer that would group all 4

#

And no you can't do that, a PaymentMethod must be attached to one Customer to be re-usable

viral girder
#

Yes, I had a feeling. BOOOO

#

figured.

#

thank you.

#

you can delete this or leave it for others.