Skip to content

Commit a94c7a1

Browse files
authored
Merge pull request #23 from razorpay/whmcs_bug_fix
Bug fix for the webhook URL
2 parents 299e2dc + 0660b7b commit a94c7a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/gateways/razorpay.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ function razorpay_MetaData()
3636
*/
3737
function razorpay_config()
3838
{
39-
$gatewayModuleName = 'razorpay';
39+
global $CONFIG;
4040

41-
// Fetch gateway configuration parameters.
42-
$gatewayParams = getGatewayVariables($gatewayModuleName);
43-
44-
$webhookUrl = $gatewayParams['systemurl'].'modules/gateways/razorpay/razorpay-webhook.php';
41+
$webhookUrl = $CONFIG['SystemURL'].'/modules/gateways/razorpay/razorpay-webhook.php';
4542

4643
return array(
4744
// the friendly display name for a payment gateway should be

0 commit comments

Comments
 (0)