- 1.5.1
-
Sha256 is now the default hash algorithm used to generate signature. If you still want to use Sha1 (previously the default algorithm for SYSTEMPAY endpoint), you must update the API config:
$factory = new PayzenGatewayFactory(); $gateway = $factory->create([ 'site_id' => ' ... ', 'certificate' => ' ... ', 'ctx_mode' => Api::MODE_PRODUCTION, 'directory' => ' ... ', ]);
$factory = new PayzenGatewayFactory(); $gateway = $factory->create([ 'site_id' => ' ... ', 'certificate' => ' ... ', 'ctx_mode' => Api::MODE_PRODUCTION, 'directory' => ' ... ', 'hash_mode' => Api::HASH_MODE_SHA1, // Add this entry ]);
-