Skip to content

Commit 9b290f3

Browse files
Merge pull request #14 from PaystackHQ/patch/amount-fix
use round instead of intval to convert amount to kobo
2 parents e828fd6 + ce10bd3 commit 9b290f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/gateways/paystack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function paystack_link($params)
111111

112112
// Invoice
113113
$invoiceId = $params['invoiceid'];
114-
$amountinkobo = intval(floatval($params['amount'])*100);
114+
$amountinkobo = round(floatval($params['amount'])*100);
115115
$currency = $params['currency'];
116116
///Transaction_reference
117117
$txnref = $invoiceId . '_' .time();

0 commit comments

Comments
 (0)