PHP code example of phonepe / php-merchant-client
1. Go to this page and download the library: Download phonepe/php-merchant-client 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/ */
phonepe / php-merchant-client example snippets
use PhonePe\PhonePeClientImpl;
use PhonePe\Models\RegularCreditRequest;
= new RegularCreditRequest();
//
// Build the regularCreditRequestObject here
//
$response = $phonePeClientObject->$regularCredit($regularCreditRequestObject)
echo $response->redirectUrl; // To get the location to redirect to.
use PhonePe\Utils\ChecksumGenerator
Id, $amount, $saltKey, $saltIndex);
$result = ChecksumGenerator::checkSumGenerate($args);
json
{
"pe/php-merchant-client": "1.*"
}
}