#sanjeewa

1 messages · Page 1 of 1 (latest)

cunning valeBOT
dapper mica
noble marten
#

req_pcJwfMwoWutlxC

#

Here it is

dapper mica
#

Thanks. It looks like you didn't specify the stripe_account when retrieving the payment_intent that's created in connected account. That's why the error.

noble marten
#

How can I specify the stripe_account when retrieve the payment_intent ?

#

when call this ?

dapper mica
#

You should specify the stripe_account in the request, similar to the way you specify one when creating the PaymentIntent.

noble marten
#

$paymentIntent_new = $this->stripe->paymentIntents->retrieve(
"pi_3MOFWPQ2vjSsWDZM1I73IfCT",[],
['stripe_account' => "acct_1MFGG2Q2vjSsWDZM"]
);

#

I tried this . This should be right

#

But it returns the same error

#

"No such payment_intent: 'pi_3MOFWPQ2vjSsWDZM1I73IfCT'"

dapper mica
#

Request ID?

noble marten
#

req_kPLYPXQko332j6

dapper mica
#

Try

$paymentIntent_new = $this->stripe->paymentIntents->retrieve(
                "pi_3MOFWPQ2vjSsWDZM1I73IfCT",
                ['stripe_account' => "acct_1MFGG2Q2vjSsWDZM"]
              );
noble marten
#

Tried this , but it is occured another error

#

Options found in $params: stripe_account. Options should be passed in their own array after $params. (HINT: pass an empty array to $params if you do not have any.)

dapper mica
#

OK. let me take a look, will get back to you later

noble marten
#

Ok Thank you. waiting

dapper mica
#

Your earlier code

$paymentIntent_new = $this->stripe->paymentIntents->retrieve(
                "pi_3MOFWPQ2vjSsWDZM1I73IfCT",[],
                ['stripe_account' => "acct_1MFGG2Q2vjSsWDZM"]
              );

looks correct. Did you save the file before running it?

noble marten
#

Yes I did , but nothing changed, But why we cannot do update to paymentIntent which is in connected account?

#

😢

dapper mica
#

I just tested your code in my integration and it's working for me.

noble marten
#

Did you try to update paymentIntent in connected account using payment_intent_id? as below

#

Problem with me, Im unable to update paymentIntent which in connected account

dapper mica
#

Can you paste the code here and share with me the request ID?

#

Is the paymentIntent retrieval working now?