Skip to content

Commit 88be37e

Browse files
committed
added support for requested amount
1 parent 3d9bf68 commit 88be37e

3 files changed

Lines changed: 2 additions & 0 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

modules/.DS_Store

0 Bytes
Binary file not shown.

modules/gateways/callback/paystack.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ function paystackshutdownFunction(){
299299
checkCbTransID($trxref);
300300

301301
$amount = floatval($txStatus->amount)/100;
302+
$requested_amount = floatval($txStatus->requested_amount)/100;
303+
if (isset($requested_amount) && $requested_amount > 0) $amount = $requested_amount
302304
$fees = floatval($txStatus->fees)/100;
303305
if ($gatewayParams['convertto']) {
304306
$result = select_query("tblclients", "tblinvoices.invoicenum,tblclients.currency,tblcurrencies.code", array("tblinvoices.id" => $invoiceId), "", "", "", "tblinvoices ON tblinvoices.userid=tblclients.id INNER JOIN tblcurrencies ON tblcurrencies.id=tblclients.currency");

0 commit comments

Comments
 (0)