Skip to content

Commit 50c4af8

Browse files
Merge pull request #42 from razorpay/version_bump
Version bump
2 parents afbdc01 + 45e593f commit 50c4af8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ Visit [https://razorpay.com](https://razorpay.com) for support requests or email
3737
This 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

modules/gateways/razorpay.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Razorpay\Api\Api;
66
use Razorpay\Api\Errors;
77

8-
const RAZORPAY_WHMCS_VERSION= '2.1.0';
8+
const RAZORPAY_WHMCS_VERSION= '2.1.1';
99
const RAZORPAY_PAYMENT_ID = 'razorpay_payment_id';
1010
const RAZORPAY_ORDER_ID = 'razorpay_order_id';
1111
const 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

0 commit comments

Comments
 (0)