1. Go to this page and download the library: Download traknpay/checkout library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use TraknPay\Checkout\Facades\Checkout;
class PaymentController extends Controller
{
public function handleResponse(Request $request) {
if(Checkout::checkResponseHash($request->all())){
// if checkResponseHash returns true, continue to save the response.
} else {
// if checkResponseHash returns false , then it means that response might be tampered
}
}
}