Skip to content

Commit 5cf4c58

Browse files
Merge pull request #49 from devduttabain/patch-1
verifying checksum only with posted inputs.
2 parents 728f6d0 + 8e2bc38 commit 5cf4c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/PaytmWalletProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function __construct(Request $request, $config){
4545

4646
public function response(){
4747
$checksum = $this->request->get('CHECKSUMHASH');
48-
if(verifychecksum_e($this->request->all(), $this->merchant_key, $checksum) == "TRUE"){
49-
return $this->response = $this->request->all();
48+
if(verifychecksum_e($this->request->post(), $this->merchant_key, $checksum) == "TRUE"){
49+
return $this->response = $this->request->post();
5050
}
5151
throw new \Exception('Invalid checksum');
5252
}

0 commit comments

Comments
 (0)