Skip to content

Commit

Permalink
Bugfix if no payment options given
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbmarshall authored Nov 20, 2023
1 parent f0ef5e9 commit 503fb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Action/ObtainNonceAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function execute($request) {
}

$model['stripePaymentIntent'] = \Stripe\PaymentIntent::create($paymentIntentData);
$payment_element_options = $model['payment_element_options'] ?? [];
$payment_element_options = $model['payment_element_options'] ?? (object)[];
$this->gateway->execute($renderTemplate = new RenderTemplate($this->templateName, array(
'amount' => $model['currencySymbol'] . ' ' . number_format($model['amount'], $model['currencyDigits']),
'client_secret' => $model['stripePaymentIntent']->client_secret,
Expand Down

0 comments on commit 503fb95

Please sign in to comment.