#smaragdin_code

1 messages ยท Page 1 of 1 (latest)

prisma yachtBOT
#

๐Ÿ‘‹ 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.

coral bison
naive oxide
#

Hello, my dashboard is loading

#

req_Luy6cpZxgJDIuS

coral bison
#

thanks, let me have a look

naive oxide
#

thank you

coral bison
#

looking

naive oxide
#

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

coral bison
#

yeah, the refunds one looks fine

#

okay so you're just missing the empty array for params

naive oxide
#

on the retrieve request ? or refund ?

coral bison
#

Your code should look like

$paymentIntent = $stripe->paymentIntents->retrieve(<id>, [],
['stripe_account' => <id>]);

naive oxide
#

ok thank you I try !

coral bison
#

The PaymentIntent retrieve - that's the request that is erroring

naive oxide
#

ok i tried on my capture request and apparently that was the problem, I'm editing my other scripts

#

all good thank you โœ