diff --git a/src/PaytmWalletManager.php b/src/PaytmWalletManager.php index 9a80ddb..aa187e7 100644 --- a/src/PaytmWalletManager.php +++ b/src/PaytmWalletManager.php @@ -74,4 +74,4 @@ public function buildProvider($provider, $config){ $config ); } -} \ No newline at end of file +} diff --git a/src/Providers/PaytmWalletProvider.php b/src/Providers/PaytmWalletProvider.php index d863df2..adb0377 100644 --- a/src/Providers/PaytmWalletProvider.php +++ b/src/Providers/PaytmWalletProvider.php @@ -48,11 +48,11 @@ public function response(){ if(verifychecksum_e($this->request->all(), $this->merchant_key, $checksum) == "TRUE"){ return $this->response = $this->request->all(); } - throw new \Exception('Invalid checksum'); + throw new \Exception('Invalid checksum'); } public function getResponseMessage() { - return @$this->response()->RESPMSG; + return $this->response()['RESPMSG']; } public function api_call($url, $params){ diff --git a/src/Providers/ReceivePaymentProvider.php b/src/Providers/ReceivePaymentProvider.php index e7616f0..6164952 100644 --- a/src/Providers/ReceivePaymentProvider.php +++ b/src/Providers/ReceivePaymentProvider.php @@ -67,10 +67,10 @@ private function beginTransaction(){ } public function getOrderId(){ - return $this->response()->ORDERID; + return $this->response()['ORDERID']; } public function getTransactionId(){ - return $this->response()->TXNID; + return $this->response()['TXNID']; } -} \ No newline at end of file +} diff --git a/src/Providers/RefundPaymentProvider.php b/src/Providers/RefundPaymentProvider.php index d592b93..8263f3c 100644 --- a/src/Providers/RefundPaymentProvider.php +++ b/src/Providers/RefundPaymentProvider.php @@ -61,10 +61,10 @@ public function response(){ } public function isRefundAlreadyRaised() { - if ($this->isFailed() && $this->response()->RESPCODE == PaytmWallet::REPSONSE_REFUND_ALREADY_RAISED) { + if ($this->isFailed() && $this->response()['RESPCODE'] == PaytmWallet::REPSONSE_REFUND_ALREADY_RAISED) { return true; } return false; } -} \ No newline at end of file +} diff --git a/src/Providers/RefundStatusCheckProvider.php b/src/Providers/RefundStatusCheckProvider.php index 517a850..c8f42da 100644 --- a/src/Providers/RefundStatusCheckProvider.php +++ b/src/Providers/RefundStatusCheckProvider.php @@ -56,10 +56,10 @@ public function response(){ } public function getOrderId(){ - return $this->response()->ORDERID; + return $this->response()['ORDERID']; } public function getTransactionId(){ - return $this->response()->TXNID; + return $this->response()['TXNID']; } diff --git a/src/Providers/StatusCheckProvider.php b/src/Providers/StatusCheckProvider.php index 901bd3f..e98cb0b 100644 --- a/src/Providers/StatusCheckProvider.php +++ b/src/Providers/StatusCheckProvider.php @@ -53,10 +53,10 @@ public function response(){ } public function getOrderId(){ - return $this->response()->ORDERID; + return $this->response()['ORDERID']; } public function getTransactionId(){ - return $this->response()->TXNID; + return $this->response()['TXNID']; }