#smaragdin_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1372680871240269925
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! Can you give me the exact request id where you hit this error?
If you don't know where to look, see https://support.stripe.com/questions/finding-the-id-for-an-api-request#:~:text=Using the dashboard,the dashboard URL as well.
thanks, let me have a look
thank you
looking
i have 3 requests in my code :
$paymentIntent = $stripe->paymentIntents->retrieve($order['stripeId'], [
'stripe_account' => $restaurant['stripe_id']
]);
$chargeId = $paymentIntent->latest_charge;
and
$refund = $stripe->refunds->create(
[
'charge' => $chargeId
],
[
'stripe_account' => $restaurant['stripe_id']
]
);
i think it's the first one which crashed the script, because i have the same error in my scripts capture and cancel
yeah, the refunds one looks fine
I mean probably the fastest thing would be to copy and paste the code from this sample and swap "create" for "retrieve":
https://docs.stripe.com/connect/authentication#stripe-account-header
okay so you're just missing the empty array for params
on the retrieve request ? or refund ?
Your code should look like
$paymentIntent = $stripe->paymentIntents->retrieve(<id>, [],
['stripe_account' => <id>]);
ok thank you I try !
The PaymentIntent retrieve - that's the request that is erroring