Skip to content

Commit

Permalink
Merge pull request #59 from farayaz/58-fix-refahbeta-bug
Browse files Browse the repository at this point in the history
fix: refah-beta cast requestId to string
  • Loading branch information
mehrdadx10 authored Jul 9, 2024
2 parents eb1009d + 722e2e4 commit 1de9216
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Gateways/RefahBeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public function request(
'startDate' => Jalalian::now()->addMonths()->getEndDayOfMonth()->toCarbon()->toIso8601String(),
'amount' => $amount,
'numberOfInstallments' => $this->config['number_of_installments'],
'requestId' => $id,
];
$result = $this->_request('post', $url, $data);
if ($result['status'] != 200) {
Expand Down Expand Up @@ -89,7 +88,7 @@ public function verify(
'startDate' => Jalalian::now()->addMonths()->getEndDayOfMonth()->toCarbon()->toIso8601String(),
'amount' => $amount,
'numberOfInstallments' => $this->config['number_of_installments'],
'requestId' => $id,
'requestId' => (string) $id,
];
$result = $this->_request('post', $url, $data);
if ($result['status'] != 200) {
Expand Down

0 comments on commit 1de9216

Please sign in to comment.