Skip to content

Commit 0660b7b

Browse files
committed
Replaced the query with to get the system URL
1 parent 373c130 commit 0660b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gateways/razorpay.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ function razorpay_MetaData()
3636
*/
3737
function razorpay_config()
3838
{
39-
$systemurl = mysql_fetch_assoc(select_query('tblconfiguration', 'value', array("setting"=>'SystemURL')));
39+
global $CONFIG;
4040

41-
$webhookUrl = $systemurl['value'].'modules/gateways/razorpay/razorpay-webhook.php';
41+
$webhookUrl = $CONFIG['SystemURL'].'/modules/gateways/razorpay/razorpay-webhook.php';
4242

4343
return array(
4444
// the friendly display name for a payment gateway should be

0 commit comments

Comments
 (0)