#TuanPham - paymentmethod

1 messages · Page 1 of 1 (latest)

ionic isle
#

Hi there!

deep surge
#

Hi soma

ionic isle
#

I'm not sure I understand your question. Can you try to clarify exactly what you want to achieve?

deep surge
#

sure

#

In my case, I want to create a common payment method

#

which is not attached with any stripe connect account

ionic isle
#

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?

deep surge
#

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

ionic isle
#

So you have one payment method on the platform account, and want to re-create it on the connected accounts?

deep surge
#

yup

#

sorry for my bad explanation

#

😅

ionic isle
deep surge
#

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

ionic isle
deep surge
#

req_FN4OsWBpKyloCV

#

here it is

ionic isle
#

the customer ID needs to be on your platform account, not on the connected account.

deep surge
#

hmm, is it because of I created the paymentMethod on my platform account , right?

ionic isle
#

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.

deep surge
#

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 ?

ionic isle
#
  • 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.