Download src/app/Http/Controllers/PaymentMethod/PayTm/callback.php from pnacorp/xsender: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Controllers/PaymentMethod/PayTm/callback.php
- Command line
-
hf download hf://pnacorp/xsender/src/app/Http/Controllers/PaymentMethod/PayTm/callback.php
-
curl -L -o callback.php https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Controllers/PaymentMethod/PayTm/callback.php
1.28 kB
| require_once "config.php"; | |
| <html> | |
| <head> | |
| <title>Paytm Blink Checkout - PHP</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
| </head> | |
| <body> | |
| <div class="container text-center"> | |
| <div class="shadow p-3 mb-5 bg-white rounded"> | |
| <?php | |
| if(!empty($_POST)){ | |
| $checksum = (!empty($_POST['CHECKSUMHASH'])) ? $_POST['CHECKSUMHASH'] : ''; | |
| unset($_POST['CHECKSUMHASH']); | |
| $verifySignature = PaytmChecksum::verifySignature($_POST, PAYTM_MERCHANT_KEY, $checksum); | |
| if($verifySignature){ | |
| <h4 class="text-success text-left">Checksum is verified. Transaction details are below:</h4> | |
| <table class="table table-bordered"> | |
| <?php foreach($_POST as $key => $value){ | |
| <tr><td> echo $key</td><td> echo $value</td></tr> | |
| } | |
| </table> | |
| } else { | |
| <h3 class="text-danger">Checksum is not verified.</h3> | |
| <?php } ?> | |
| <?php } else { | |
| <h3 class="text-danger">Empty POST Response</h3> | |
| <?php } ?> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |