Skip to content

Commit a3d3c4a

Browse files
authored
Merge pull request #32 from apoca/develop
closed: #31 - Formatting amount error
2 parents 2e15cf7 + e9dcd6f commit a3d3c4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Brands/PaymentWithCard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function pay(): object
7272
'authentication.userId' => config('sibs.authentication.userId'),
7373
'authentication.password' => config('sibs.authentication.password'),
7474
'authentication.entityId' => config('sibs.authentication.entityId'),
75-
'amount' => number_format($this->amount, 2),
75+
'amount' => number_format($this->amount, 2, '.', ''),
7676
'currency' => $this->currency,
7777
'paymentBrand' => $this->brand,
7878
'paymentType' => $this->type,

src/Brands/PaymentWithMBWay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function pay()
6565

6666
$payload = [
6767
'entityId' => config('sibs.authentication.entityId'),
68-
'amount' => number_format($this->amount, 2),
68+
'amount' => number_format($this->amount, 2, '.', ''),
6969
'currency' => $this->currency,
7070
'paymentBrand' => $this->brand,
7171
'paymentType' => $this->type,

0 commit comments

Comments
 (0)