#DaanVDH

1 messages · Page 1 of 1 (latest)

spark bisonBOT
ripe belfry
#

the STRIPE_ID is my own accountId and the accountId is the connect account's accountId

zinc rock
#

Any chance you have a request ID for that error message? It should look like req_...

ripe belfry
#

req_9Q8ugBKzVrOjTZ

zinc rock
#

Thanks. What kind of charge type are you intending to create in this case?

ripe belfry
#

A direct payment for a standard connected account

zinc rock
#

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

ripe belfry
#

I see, I'll try it and report back

zinc rock
#

on behalf of can also be omitted since the charge will be made directly on the standard connected account

ripe belfry
#

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)

zinc rock
#

Okay, I'm a bit confused. Can you share the request ID for the above error?

ripe belfry
#

req_YgQZjbSFJDQOns

ripe belfry
zinc rock
#

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