#Bernard Paulet

1 messages · Page 1 of 1 (latest)

smoky havenBOT
scenic atlas
#

Hi! Let me help you with this.

#

What doc are you referring to?

kind sierra
#

(in french)

scenic atlas
#

You can create a new customer with the same data on the Connected Account. If you don't have any PMs saved, there's no sensitive data that you need to transfer in a special way.

kind sierra
#

OK, I will try! 🙂
Could you confirm that the payment method that will be used by customer A for vendor X will be retrieved when customer A will pay for vendor Y?

scenic atlas
#

What do you mean by vendor?

kind sierra
#

I mean the owner of the connected account

scenic atlas
#

What kind of connected accounts are you using? Standard/Express/Custom?

kind sierra
#

And I just see something strange...
I try to adapt my code from a "platform" account to connected account. The first one was working fine (in test mode).
So when I test a payment, he retrieves the customer based on the email.
After that, I try the account duplication like explained in the doc and I receive an error message: No such customer: 'cus_O6uztv3JCQIDRQ'
I am surprised because I only have 2 customers registered (always in test mode) and their Id are different than the one given by the error message (cus_NRNnvtzUxZp9Lp and cus_NccAz0MYLHi3TM)

#

I am using standard accounts

#

For your information, I am a newbie and I use Flutter (with flutter_stripe plugin)

scenic atlas
#

No such customer: 'cus_O6uztv3JCQIDRQ'
This is expected as customer IDs are unique. Even if you cloned the customer's data, it is still a different Customer object on a different Stripe account. That's why you could as well just copy the data yourself, if no PMs are involved.

kind sierra
#

But why do I have that error ? Where does that id come from? I try to explain myself...

  1. I first retrieve the customer (I was thinking that the customer id was that one).
  2. I create an ephemeral key
  3. I create a payment intent (compared with the "old" code I just add the application fee and the Stripe account

After that I give the and to Flutter (flutter_stripe) that process the payment sheet

Sorry to insist and for not understanding quickly...

scenic atlas
kind sierra
#

OK, I launch the app...

#

The request id is the following : req_z4Oon1Pq32L5UT

#

I just tried with the cloning of customer like explained in the doc (but without payment method attached) and receive another error message : The customer must have an active payment source attached.

The process that used was :
) I first retrieve the customer (I was thinking that the customer id was that one).
2) I create a token for the customer
3) I create the customer for the connected account
4) I create an ephemeral key
5) I create a payment intent (compared with the "old" code I just add the application fee and the Stripe account)

After that I give the hand to Flutter (flutter_stripe) that process the payment sheet

#

for the last one the req id is : req_xX1GYKh7V1W5D3

scenic atlas
#

You are making the call on your Platform account, but the Customer was created on the Connected account. That's why it fails. You can't use the same ID on different accounts.

#

Even if you cloned the Customer object it will have a different ID.

kind sierra
#

Ok that was one of my questions... Can I use the same customer Id and same customer email for different accounts?

scenic atlas
#

ID - no, email - yes.

kind sierra
#

OK, I thank you very much for your help (and your patience) !
I think that I see where I am wrong (effectively I use the client Id from the platform customer).
I will try to adapt my code.
Many thanks !

scenic atlas
#

Happy to help!