Open
Description
I'm creating a checkout session with a large number of line_items in a try/catch. Normally an exception message is gathered if there are any issues but in this instance when there are a large number of line_items, somewhere around 40, no exception message is captured. Trying to figure out if this is an issue on Stripe's end or not. Nothing in their documentation indicates there is any limit there (https://stripe.com/docs/js/checkout/redirect_to_checkout).
Exception::__construct(): Passing null to parameter #1 ($message) of type string is deprecated in /vendor/cartalyst/stripe/src/Exception/Handler.php on line 125
try {
$paymentMethod = \Stripe::checkout()->sessions()->create([
'payment_method_types' => ['card'],
'mode' => 'payment',
'payment_intent_data' => [
'description' => $description,
'metadata' => $metadata,
'receipt_email' => $this->selectedCustomerEmail,
],
'customer_email' => $this->selectedCustomerEmail,
'line_items' => $invoices,
]);
} catch (\Exception $exception) {
Log::error('Backend: ' . $exception->getMessage());
return $exception->getCode();
}
Metadata
Metadata
Assignees
Labels
No labels