Skip to content

Commit

Permalink
Revert "remove amount form callbackAbuseCheckList"
Browse files Browse the repository at this point in the history
This reverts commit c637a74.
  • Loading branch information
samuraee committed Nov 28, 2023
1 parent c637a74 commit 2b81b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Provider/AsanPardakhtProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ protected function callbackAbuseCheckList(): void
{
if (!(
$this->getGatewayOrderIdFromCallBackParameters() === (string)$this->getTransaction()->gateway_order_id
&& (int)$this->getTransaction()->getFromJsonb(key: 'amount', fieldName: 'gateway_callback_params') === $this->getTransaction()->getPayableAmount()
&& (string)$this->getTransaction()->getFromJsonb(key: 'refID', fieldName: 'gateway_callback_params') === $this->getTransaction()->getGatewayToken()
)) {
throw new Exception('shaparak::shaparak.could_not_pass_abuse_checklist');
Expand Down
1 change: 1 addition & 0 deletions src/Provider/MellatProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ protected function callbackAbuseCheckList(): void
{
if (!(
(string)$this->getTransaction()->gateway_order_id === $this->getGatewayOrderIdFromCallBackParameters()
&& (int)$this->getParameters('FinalAmount') === $this->getTransaction()->getPayableAmount()
&& (string)$this->getParameters('refID') === $this->getTransaction()->getGatewayToken()
)) {
throw new Exception('shaparak::shaparak.could_not_pass_abuse_checklist');
Expand Down

0 comments on commit 2b81b46

Please sign in to comment.