Skip to content

Commit abf0de5

Browse files
committed
Updated the 'amount' string
The 'amount' string was fetching the value from the WHMCS Table which is in Rupee.Paisa format, thus the amount had to be converted to full, only paisa format.
1 parent 456d993 commit abf0de5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gateways/callback/razorpay.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
try {
5353
$url = 'https://api.razorpay.com/v1/payments/'.$razorpay_payment_id.'/capture';
54-
$fields_string="amount=$amount";
54+
$fields_string="amount=$converted_amount";
5555

5656
//cURL Request
5757
$ch = curl_init();
@@ -112,4 +112,4 @@
112112
}
113113

114114
header( "Location: ".$GATEWAY['systemurl']."/viewinvoice.php?id=" . $merchant_order_id );
115-
?>
115+
?>

0 commit comments

Comments
 (0)