amazon-pay-sdk-php
amazon-pay-sdk-php copied to clipboard
Update Client.php to replace depracated methods for newer PHP version
using iconv_set_encoding is deprecated in PHP>50600. The proposed change checks the PHP version and uses the new method instead when appropriate.
Why not version_compare() for this? http://php.net/manual/en/function.version-compare.php
Example:
if(version_compare(PHP_VERSION, '5.6.0') >= 0) {}