Skip to content

Commit

Permalink
Merge pull request #49 from devduttabain/patch-1
Browse files Browse the repository at this point in the history
verifying checksum only with posted inputs.
  • Loading branch information
anandsiddharth authored Mar 26, 2020
2 parents 728f6d0 + 8e2bc38 commit 5cf4c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/PaytmWalletProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function __construct(Request $request, $config){

public function response(){
$checksum = $this->request->get('CHECKSUMHASH');
if(verifychecksum_e($this->request->all(), $this->merchant_key, $checksum) == "TRUE"){
return $this->response = $this->request->all();
if(verifychecksum_e($this->request->post(), $this->merchant_key, $checksum) == "TRUE"){
return $this->response = $this->request->post();
}
throw new \Exception('Invalid checksum');
}
Expand Down

0 comments on commit 5cf4c58

Please sign in to comment.