#sovie7ic
1 messages · Page 1 of 1 (latest)
$pm = $stripe->paymentMethods->attach($pm, [
'customer' => $customer_id,
]);
Thats the code
Ok, i think i found the issue
$pm = $stripe->paymentMethods->attach($pm, [
'customer' => $customer_id,
], [
'stripe_account' => $this->stripe_id,
]);
Yup! You beat me to it
connected account was missing i guess
thanks for your help, and sorry for bothering you! 😄
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)