From 1fe8f1445cf854a6e5f59003eb7e5424c8513d01 Mon Sep 17 00:00:00 2001 From: doctordebug Date: Mon, 11 Feb 2019 10:37:07 +0100 Subject: [PATCH] Fix undefined index error checking the authorization_amount causes a PHP Undefined Index-error if you do not set an authorization_amount --- AmazonPay/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmazonPay/Client.php b/AmazonPay/Client.php index 09b57eb..8c405f6 100644 --- a/AmazonPay/Client.php +++ b/AmazonPay/Client.php @@ -779,7 +779,7 @@ public function confirmOrderReference($requestParameters = array()) 'mws_auth_token' => 'MWSAuthToken' ); - if ($requestParameters['authorization_amount'] && !$requestParameters['currency_code']) { + if (isset($requestParameters['authorization_amount']) && !isset($requestParameters['currency_code'])) { $requestParameters['currency_code'] = strtoupper($this->config['currency_code']); }