amazon-pay-api-sdk-php
amazon-pay-api-sdk-php copied to clipboard
Error under PHP 8.2
the use of
echo Amazon\Pay\API\Client::SDK_VERSION;
throws an Error under PHP 8.2 "Failed opening required 'ClientInterface.php'".
It works if you change:
require_once 'ClientInterface.php'; require_once 'HttpCurl.php';
To
require_once DIR.'/ClientInterface.php'; require_once DIR.'/HttpCurl.php';