Skip to content

Commit

Permalink
Merge pull request #23 from razorpay/whmcs_bug_fix
Browse files Browse the repository at this point in the history
Bug fix for the webhook URL
  • Loading branch information
ChetanGN authored Mar 20, 2020
2 parents 299e2dc + 0660b7b commit a94c7a1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/gateways/razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ function razorpay_MetaData()
*/
function razorpay_config()
{
$gatewayModuleName = 'razorpay';
global $CONFIG;

// Fetch gateway configuration parameters.
$gatewayParams = getGatewayVariables($gatewayModuleName);

$webhookUrl = $gatewayParams['systemurl'].'modules/gateways/razorpay/razorpay-webhook.php';
$webhookUrl = $CONFIG['SystemURL'].'/modules/gateways/razorpay/razorpay-webhook.php';

return array(
// the friendly display name for a payment gateway should be
Expand Down

0 comments on commit a94c7a1

Please sign in to comment.