File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ Visit [https://razorpay.com](https://razorpay.com) for support requests or email
3737This is licensed under the [ MIT License] [ mit ]
3838
3939[ mit ] : https://opensource.org/licenses/MIT
40- [ 6 ] : https://github.com/razorpay/razorpay-whmcs/releases/tag/2.1.0
40+ [ 6 ] : https://github.com/razorpay/razorpay-whmcs/releases/tag/2.1.1
4141[ 5 ] : https://github.com/razorpay/razorpay-whmcs/releases/tag/v1.0.3
Original file line number Diff line number Diff line change 55use Razorpay \Api \Api ;
66use Razorpay \Api \Errors ;
77
8- const RAZORPAY_WHMCS_VERSION = '2.1.0 ' ;
8+ const RAZORPAY_WHMCS_VERSION = '2.1.1 ' ;
99const RAZORPAY_PAYMENT_ID = 'razorpay_payment_id ' ;
1010const RAZORPAY_ORDER_ID = 'razorpay_order_id ' ;
1111const RAZORPAY_SIGNATURE = 'razorpay_signature ' ;
@@ -169,8 +169,8 @@ function razorpay_link($params)
169169 // System Parameters
170170 $ whmcsVersion = $ params ['whmcsVersion ' ];
171171 $ razorpayWHMCSVersion = RAZORPAY_WHMCS_VERSION ;
172- $ callbackUrl = $ params ['systemurl ' ] . '/modules/gateways/razorpay/razorpay.php ' ;
173172 $ checkoutUrl = 'https://checkout.razorpay.com/v1/checkout.js ' ;
173+ $ callbackUrl = (substr ($ params ['systemurl ' ], -1 ) === '/ ' ) ? $ params ['systemurl ' ] . 'modules/gateways/razorpay/razorpay.php ' : $ params ['systemurl ' ] . '/modules/gateways/razorpay/razorpay.php ' ;
174174
175175 $ razorpayOrderId = createRazorpayOrderId ($ params );
176176
You can’t perform that action at this time.
0 commit comments