Skip to content

Commit 2b81b46

Browse files
committed
Revert "remove amount form callbackAbuseCheckList"
This reverts commit c637a74.
1 parent c637a74 commit 2b81b46

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Provider/AsanPardakhtProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ protected function callbackAbuseCheckList(): void
196196
{
197197
if (!(
198198
$this->getGatewayOrderIdFromCallBackParameters() === (string)$this->getTransaction()->gateway_order_id
199+
&& (int)$this->getTransaction()->getFromJsonb(key: 'amount', fieldName: 'gateway_callback_params') === $this->getTransaction()->getPayableAmount()
199200
&& (string)$this->getTransaction()->getFromJsonb(key: 'refID', fieldName: 'gateway_callback_params') === $this->getTransaction()->getGatewayToken()
200201
)) {
201202
throw new Exception('shaparak::shaparak.could_not_pass_abuse_checklist');

src/Provider/MellatProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ protected function callbackAbuseCheckList(): void
9797
{
9898
if (!(
9999
(string)$this->getTransaction()->gateway_order_id === $this->getGatewayOrderIdFromCallBackParameters()
100+
&& (int)$this->getParameters('FinalAmount') === $this->getTransaction()->getPayableAmount()
100101
&& (string)$this->getParameters('refID') === $this->getTransaction()->getGatewayToken()
101102
)) {
102103
throw new Exception('shaparak::shaparak.could_not_pass_abuse_checklist');

0 commit comments

Comments
 (0)