#vakarm.

1 messages ยท Page 1 of 1 (latest)

gleaming scaffoldBOT
primal shadow
shell echo
#

I dont have access to the request list, need to wait for my boss ๐Ÿ˜ฆ

primal shadow
#

Ok while we wait can you paste the full error?

shell echo
#

well, it works when i put the description in the metadata tag, so it should be ok.

primal shadow
#

What do you mean?

#

That sounds like you just set it as metadata

shell echo
#

yes, I set the description as metadata, because it fails when I set it outside.

#

#0 /home/uwdfznzs/public_html/app.minutepizza.ca/vendor/stripe/stripe-php/lib/Util/RequestOptions.php(59): Stripe\Util\RequestOptions::parse(Array, true)
#1 /home/uwdfznzs/public_html/app.minutepizza.ca/vendor/stripe/stripe-php/lib/BaseStripeClient.php(131): Stripe\Util\RequestOptions->merge(Array, true)
#2 /home/uwdfznzs/public_html/app.minutepizza.ca/vendor/stripe/stripe-php/lib/Service/AbstractService.php(75): Stripe\BaseStripeClient->request('post', '/v1/payment_int...', Array, Array)
#3 /home/uwdfznzs/public_html/app.minutepizza.ca/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php(257): Stripe\Service\AbstractService->request('post', '/v1/payment_int...', Array, Array)
#4 /home/uwdfznzs/public_html/app.minutepizza.ca/update-payment-intent.php(38): Stripe\Service\PaymentIntent in /home/uwdfznzs/public_html/app.minutepizza.ca/vendor/stripe/stripe-php/lib/Util/RequestOptions.php on line 143
[11-Jul-2023 15:30:48 America/Chicago] PHP Fatal error: Uncaught Stripe\Exception\InvalidArgumentException: Got unexpected keys in options array: description in /home/uwdfznzs/public_html/app.minutepizza.ca/vendor/stripe/stripe-php/lib/Util/RequestOptions.php:143

#

here is the full error

gleaming scaffoldBOT
primal shadow
#

What version of the php library are you using?

shell echo
#

10.3.0

#

I just need an example, with the good syntax to use to make the update with a description.

primal shadow
#

I think it should be this:

    $intentId,
    ['amount'=> $amount, 'description' => $description], 
);```
Not sure why it's not working. Let me check something.
shell echo
#

ok, well... Like I said, it's OK when I set it as metadata, so I'll do it that way.

Thanks for your help

split pendant
#

๐Ÿ‘‹ If you still run into errors and are able to get access to a request ID for a failed request, we're happy to continue the investigation