Skip to content
This repository has been archived by the owner on Mar 18, 2020. It is now read-only.

Commit

Permalink
Make backward compatible below PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Jun 28, 2017
1 parent da2f31c commit a0c41d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/modules/payment/payeezyjszc.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ private function format_amount_for_payeezy($amount)
return (int)(string)(round($amount, $decimal_places) * pow(10, $decimal_places));

// Requires PHP 5.6 or newer:
return (int)(string)(round($amount, $decimal_places) * 10 ** $decimal_places);
// return (int)(string)(round($amount, $decimal_places) * 10 ** $decimal_places);
}

private function hmacAuthorizationToken($payload)
Expand Down

0 comments on commit a0c41d3

Please sign in to comment.