Skip to content

Commit

Permalink
Merge pull request #32 from apoca/develop
Browse files Browse the repository at this point in the history
closed: #31 - Formatting amount error
  • Loading branch information
apoca committed May 16, 2019
2 parents 2e15cf7 + e9dcd6f commit a3d3c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Brands/PaymentWithCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function pay(): object
'authentication.userId' => config('sibs.authentication.userId'),
'authentication.password' => config('sibs.authentication.password'),
'authentication.entityId' => config('sibs.authentication.entityId'),
'amount' => number_format($this->amount, 2),
'amount' => number_format($this->amount, 2, '.', ''),
'currency' => $this->currency,
'paymentBrand' => $this->brand,
'paymentType' => $this->type,
Expand Down
2 changes: 1 addition & 1 deletion src/Brands/PaymentWithMBWay.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function pay()

$payload = [
'entityId' => config('sibs.authentication.entityId'),
'amount' => number_format($this->amount, 2),
'amount' => number_format($this->amount, 2, '.', ''),
'currency' => $this->currency,
'paymentBrand' => $this->brand,
'paymentType' => $this->type,
Expand Down

0 comments on commit a3d3c4a

Please sign in to comment.