Skip to content

Commit

Permalink
Merge pull request #9 from bizcommerce/main
Browse files Browse the repository at this point in the history
Fix: send amount as integer
  • Loading branch information
josemonteiropp authored Oct 31, 2024
2 parents 36cb131 + c60f37d commit c847250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Gateway/Request/CaptureRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public function build(array $buildSubject)

/** @var Order $order */
$order = $payment->getOrder();

$amount = $buildSubject['amount'] ?? $order->getGrandTotal();
$request = [
'amount' => $buildSubject['amount'] ?? $order->getGrandTotal()
'amount' => $amount * 100,
];

$clientConfig = [
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "picpay/ecommerce-integration-magento2",
"version": "1.2.1",
"version": "1.2.2",
"description": "N/A",
"type": "magento2-module",
"autoload": {
Expand Down

0 comments on commit c847250

Please sign in to comment.