Skip to content

Commit

Permalink
Merge pull request #42 from razorpay/version_bump
Browse files Browse the repository at this point in the history
Version bump
  • Loading branch information
jampulanaveen authored Nov 17, 2021
2 parents afbdc01 + 45e593f commit 50c4af8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ Visit [https://razorpay.com](https://razorpay.com) for support requests or email
This is licensed under the [MIT License][mit]

[mit]: https://opensource.org/licenses/MIT
[6]: https://github.com/razorpay/razorpay-whmcs/releases/tag/2.1.0
[6]: https://github.com/razorpay/razorpay-whmcs/releases/tag/2.1.1
[5]: https://github.com/razorpay/razorpay-whmcs/releases/tag/v1.0.3
4 changes: 2 additions & 2 deletions modules/gateways/razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Razorpay\Api\Api;
use Razorpay\Api\Errors;

const RAZORPAY_WHMCS_VERSION= '2.1.0';
const RAZORPAY_WHMCS_VERSION= '2.1.1';
const RAZORPAY_PAYMENT_ID = 'razorpay_payment_id';
const RAZORPAY_ORDER_ID = 'razorpay_order_id';
const RAZORPAY_SIGNATURE = 'razorpay_signature';
Expand Down Expand Up @@ -169,8 +169,8 @@ function razorpay_link($params)
// System Parameters
$whmcsVersion = $params['whmcsVersion'];
$razorpayWHMCSVersion = RAZORPAY_WHMCS_VERSION;
$callbackUrl = $params['systemurl'] . '/modules/gateways/razorpay/razorpay.php';
$checkoutUrl = 'https://checkout.razorpay.com/v1/checkout.js';
$callbackUrl = (substr($params['systemurl'], -1) === '/') ? $params['systemurl'] . 'modules/gateways/razorpay/razorpay.php' : $params['systemurl'] . '/modules/gateways/razorpay/razorpay.php';

$razorpayOrderId = createRazorpayOrderId($params);

Expand Down

0 comments on commit 50c4af8

Please sign in to comment.