Skip to content

Commit

Permalink
Missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jan 2, 2021
1 parent be03939 commit 9712d47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ protected function createGateway($paymentMethod)
{
$gateway = Omnipay::create('Stripe\PaymentIntents');
$gateway->setApiKey($paymentMethod->transaction_mode != 'live' ? $paymentMethod->test_secret_key : $paymentMethod->live_secret_key);
return $gateway;
}

}

0 comments on commit 9712d47

Please sign in to comment.