Closed mike-brookes closed 2 years ago
PHP 5.6 Bug in: globalpayments/php-sdk/src/Gateways/Gp3DSProvider.php in multiple locations...
example:
$request['payer'] = $this->maybeSetKey($request['payer'], 'email', $builder->getCustomerEmail() ?? null);
Should be I guess :
$request['payer'] = $this->maybeSetKey($request['payer'], 'email', $builder->getCustomerEmail() ? $builder->getCustomerEmail() : null;
Unless this is no longer true: Requirements: PHP 5.5.9+
PHP 7+ is required for ?? syntax to work.
I also have this problem. The suggested fix is not quite correct. Expressions of the form A ?? B need to be converted to isset( A ) ? A : B or ( null !== A ) ? A : B in order to work in PHP 5.6.
PHP 5.6 Bug in: globalpayments/php-sdk/src/Gateways/Gp3DSProvider.php in multiple locations...
example:
$request['payer'] = $this->maybeSetKey($request['payer'], 'email', $builder->getCustomerEmail() ?? null);
Should be I guess :
$request['payer'] = $this->maybeSetKey($request['payer'], 'email', $builder->getCustomerEmail() ? $builder->getCustomerEmail() : null;
Unless this is no longer true: Requirements: PHP 5.5.9+
PHP 7+ is required for ?? syntax to work.