Skip to content

Commit

Permalink
Merge pull request #18 from xendit/fix/round-up-total-cc
Browse files Browse the repository at this point in the history
Fix round up total pay via CC
  • Loading branch information
andykim authored Apr 30, 2022
2 parents 142928e + cb38b5e commit 8d55a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gateways/xendit/lib/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function generateCCPaymentRequest(array $params = [], int $auth_id = null
}

$payload = [
"amount" => $params["amount"],
"amount" => $this->roundUpTotal($params["amount"]),
"currency" => $params["currency"],
"token_id" => $params["gatewayid"],
"external_id" => $this->generateExternalId($params["invoiceid"]),
Expand Down

0 comments on commit 8d55a05

Please sign in to comment.