Skip to content

Commit 58a757a

Browse files
committed
updated quotes and line spaces
1 parent eb7d7a1 commit 58a757a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

modules/gateways/razorpay.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ function razorpay_config()
4242

4343
$webhookUrl = $CONFIG['SystemURL'].'/modules/gateways/razorpay/razorpay-webhook.php';
4444
$rzpOrderMapping = new RZPOrderMapping(razorpay_MetaData()['DisplayName']);
45+
4546
try
4647
{
4748
$rzpOrderMapping->createTable();
4849
}
4950
catch (Exception $e)
5051
{
51-
logTransaction(razorpay_MetaData()['DisplayName'], $e->getMessage(), 'Unsuccessful - Create Table');
52+
logTransaction(razorpay_MetaData()['DisplayName'], $e->getMessage(), "Unsuccessful - Create Table");
5253
}
5354

5455
return array(

modules/gateways/razorpay/razorpay.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
require_once __DIR__ . '/razorpay-sdk/Razorpay.php';
1515
require_once __DIR__ . '/rzpordermapping.php';
1616

17-
1817
use Razorpay\Api\Api;
1918
use Razorpay\Api\Errors;
2019

@@ -31,7 +30,7 @@
3130
}
3231

3332
// Retrieve data returned in payment gateway callback
34-
$merchant_order_id = (isset($_POST['merchant_order_id']) === true) ? $_POST["merchant_order_id"] : $_GET["merchant_order_id"];
33+
$merchant_order_id = (isset($_POST['merchant_order_id']) === true) ? $_POST['merchant_order_id'] : $_GET['merchant_order_id'];
3534
$razorpay_payment_id = $_POST['razorpay_payment_id'];
3635

3736
// Validate Callback Invoice ID.
@@ -101,8 +100,8 @@ function verifySignature(int $order_no, array $response, $gatewayParams)
101100
);
102101

103102
$sessionKey = getOrderSessionKey($order_no);
104-
105103
$razorpayOrderId = "";
104+
106105
if (isset($_SESSION[$sessionKey]) === true)
107106
{
108107
$razorpayOrderId = $_SESSION[$sessionKey];
@@ -128,6 +127,7 @@ function verifySignature(int $order_no, array $response, $gatewayParams)
128127
logTransaction($gatewayParams['name'], $e->getMessage(), "Unsuccessful - Fetch Order");
129128
}
130129
}
130+
131131
$attributes[RAZORPAY_ORDER_ID] = $razorpayOrderId;
132132
$api->utility->verifyPaymentSignature($attributes);
133133
}

modules/gateways/razorpay/rzpordermapping.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
use Illuminate\Database\Capsule\Manager as Capsule;
34

45
class RZPOrderMapping

0 commit comments

Comments
 (0)