Skip to content

Commit c637a74

Browse files
committed
remove amount form callbackAbuseCheckList
1 parent 7a65c31 commit c637a74

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/Provider/AsanPardakhtProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ 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()
200199
&& (string)$this->getTransaction()->getFromJsonb(key: 'refID', fieldName: 'gateway_callback_params') === $this->getTransaction()->getGatewayToken()
201200
)) {
202201
throw new Exception('shaparak::shaparak.could_not_pass_abuse_checklist');

src/Provider/MellatProvider.php

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

0 commit comments

Comments
 (0)