Skip to content

Commit

Permalink
Merge pull request #30 from hardevine/master
Browse files Browse the repository at this point in the history
Corrected response as array
  • Loading branch information
anandsiddharth authored Jan 25, 2019
2 parents fa03b28 + fd312a9 commit 6c1f5a3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/PaytmWalletManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ public function buildProvider($provider, $config){
$config
);
}
}
}
4 changes: 2 additions & 2 deletions src/Providers/PaytmWalletProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/ReceivePaymentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

}
}
4 changes: 2 additions & 2 deletions src/Providers/RefundPaymentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
}
4 changes: 2 additions & 2 deletions src/Providers/RefundStatusCheckProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}


Expand Down
4 changes: 2 additions & 2 deletions src/Providers/StatusCheckProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}


Expand Down

0 comments on commit 6c1f5a3

Please sign in to comment.