#sanjeewa
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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.
How can I specify the stripe_account when retrieve the payment_intent ?
when call this ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You should specify the stripe_account in the request, similar to the way you specify one when creating the PaymentIntent.
By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)
$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'"
Request ID?
req_kPLYPXQko332j6
Try
$paymentIntent_new = $this->stripe->paymentIntents->retrieve(
"pi_3MOFWPQ2vjSsWDZM1I73IfCT",
['stripe_account' => "acct_1MFGG2Q2vjSsWDZM"]
);
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.)
OK. let me take a look, will get back to you later
Ok Thank you. waiting
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?
Yes I did , but nothing changed, But why we cannot do update to paymentIntent which is in connected account?
😢
I just tested your code in my integration and it's working for me.