#DaanVDH
1 messages · Page 1 of 1 (latest)
the STRIPE_ID is my own accountId and the accountId is the connect account's accountId
Any chance you have a request ID for that error message? It should look like req_...
req_9Q8ugBKzVrOjTZ
Thanks. What kind of charge type are you intending to create in this case?
A direct payment for a standard connected account
Got it. In that case, STRIPE_ID should be the standard connected account's ID, and the secret key used to create the charge should belong to the standard platform
I see, I'll try it and report back
on behalf of can also be omitted since the charge will be made directly on the standard connected account
Ok, so now i'm getting: No such PaymentMethod: 'pm_1MTY63C2wI1d2erswgTFtLC1'; OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account.
do i need to do this: ```go
methodParams.SetStripeAccount(accountId)
Okay, I'm a bit confused. Can you share the request ID for the above error?
req_YgQZjbSFJDQOns
Doing this worked, i'm not getting an error now!
Great! With direct charges, PaymentMethod objects need to be stored on the standard connected account (as opposed to the platform). So yes, the account header used for the creation of the PaymentMethod should also be the standard connected account