#pandareaper

1 messages · Page 1 of 1 (latest)

hazy tuskBOT
hoary plover
#

Hi there, a customer can't be cloned but a payment method can (the title is misleading). So what this code shows is to just attache a source to a new customer.

#

Are you still using sources? or you have already upgrade to using payment methods API?

long topaz
#

we are using the payment methods api

hoary plover
#

OK, then I'd suggest you to use another doc, one sec

long topaz
#

I think maybe the part where I have been getting confused is when creating the payment intent, previously we set the customerId

I suppose I should provide a payment_method instead?

For context, I am investigating moving to a direct charges approach

hoary plover
#

You should always sets a payment_method if you want to use an existing payment_method for payment

long topaz
#

Is that in the context of direct charges or a general rule?

Currently we perform destination charges and set the customerId but do not set the payment_method

In our client customers choose the payment method to use and we confirm with the selected one at that point