#crenon

1 messages · Page 1 of 1 (latest)

merry cipherBOT
pseudo elm
#
        $recurringprofileinfo['stripe_paymentmethod'],
        []
);```
stray latch
#

Hi! what is the issue?

pseudo elm
#

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'

stray latch
#

Looking

pseudo elm
#

when I look at the customer in question, I see the payment method in the stripe portal

#

thanks very much for any help

stray latch
#

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.

#

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?

pseudo elm
#

let me try, one sec

#

and thank you!

stray latch
#

Sure thing!

pseudo elm
#

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!