#TuanPham - paymentmethod
1 messages · Page 1 of 1 (latest)
Hi soma
I'm not sure I understand your question. Can you try to clarify exactly what you want to achieve?
sure
In my case, I want to create a common payment method
which is not attached with any stripe connect account
What is a "common payment method"?
which is not attached with any stripe connect account
so where is the payment method stored? on the paltform account?
As I know, It is a payment method which is not attached with any stripe connect account ?
yup, seems like it is on the platform account
So you have one payment method on the platform account, and want to re-create it on the connected accounts?
No worries! Then you can clone the payment method using this: https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
hmm
the main point is when I do as the docs say, It tells me that it can not find any customer
But when I check in stripe dashboard, I still see that it has a customer with that id
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
the customer ID needs to be on your platform account, not on the connected account.
hmm, is it because of I created the paymentMethod on my platform account , right?
yes the payment method must be on the platform account and attached to a customer on the platfrom account. Then you clone that payment method by passing the payment method ID and the customer ID.
in the request you shared the customer ID didn't belong to the platform account, so it failed.
If I want to make a paymentMethod for sharing, I also need to create the customer data with platform account id and another same customer which belongs to the connect account. Then, everytime my user pays , I need to clone new paymentmethod and attach it to my customer , right ?
- On you platform you have: a payment method attached to a customer
- Then you clone the payment method on the connected account (by passing the existing payment method ID and customer ID)
- Finally on the connected account you have a payment method! And if needed you can attach it to a customer that is on the connected account.