Payment method no longer working
-
Afterpay is giving an error when trying to use the payment method. My developer shared:
Here is the error:
In the file class-wc-gateway-afterpay-base.php, at line 1287, the following code is present:
$afterpay->do_request( $authorisation, $afterpay_mode, ‘nl’ );
However, the $authorisation variable does not contain $authorization[‘apiKey’]. The do_request function eventually leads to the following method in plugins/afterpay-payment-gateway-for-woocommerce/vendor/riverty/riverty-sdk-php/src/RestClient.php:protected function setAuthorization($authorization)
{
????$this->authorization = [
????????‘apiKey’ => $authorization[‘apiKey’]
????];
}Since the setAuthorization method expects an apiKey within the $authorization array, its absence causes an authorization error.
- You must be logged in to reply to this topic.