amazon-pay-api-sdk-php icon indicating copy to clipboard operation
amazon-pay-api-sdk-php copied to clipboard

Error under PHP 8.2

Open sdunger opened this issue 3 years ago • 0 comments

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';

sdunger avatar Jan 16 '23 09:01 sdunger