#sovie7ic

1 messages · Page 1 of 1 (latest)

opaque hornetBOT
sacred oar
#

$pm = $stripe->paymentMethods->attach($pm, [
'customer' => $customer_id,
]);

#

Thats the code

opaque hornetBOT
sacred oar
#

Ok, i think i found the issue

#

$pm = $stripe->paymentMethods->attach($pm, [
'customer' => $customer_id,
], [
'stripe_account' => $this->stripe_id,
]);

tepid wolf
#

Yup! You beat me to it

sacred oar
#

connected account was missing i guess

#

thanks for your help, and sorry for bothering you! 😄

tepid wolf
#

Typically you see this error when you use a Customer (or other object) belonging to a connected account, but the request was made by the platform (or vice versa)