#crenon
1 messages · Page 1 of 1 (latest)
$recurringprofileinfo['stripe_paymentmethod'],
[]
);```
Hi! what is the issue?
these are for customers of a connected account
the problem is that we've just had some payment methods imported by the Stripe migrations team, and for those payment methods we're getting an error when we try the same call
the error is:
PHP Fatal error: Uncaught (Status 404) (Request req_hOonRolQ12KS47) No such PaymentMethod: 'pm_1Mtx9WFdcT75LYXeqSAm79al'
Looking
when I look at the customer in question, I see the payment method in the stripe portal
thanks very much for any help
Yeah, that payment method object does not belong to the account that you're making the call with. It belongs to the account ending in YXe.
Meanwhile, the request https://dashboard.stripe.com/logs/req_hOonRolQ12KS47 is made with the API key for account ending in MNx.
As a next step, I think you'd want to use the Stripe Account header to make this request
Can you try adding the Stripe Account header on this request and pass the account id ending in YXe?
Sure thing!
Here is more documentation on it: https://stripe.com/docs/connect/authentication
I think i'm doign it incorrectly, here's the error:
Uncaught (Status 400) (Request req_3qMueSWIFGBCot) Received unknown parameter: stripe_account
the php code is
PAYMENTMETHOD,
['stripe_account' => DESTINATIONACCTNUMBER]
);```
can you give me the format for using the stripe_account header with the paymentMethods->retrieve method?
sorry to be dense
nevermind, i figured it out
i was passing the options as the params
thanks very much for your help!