Today, We want to share with you Paytm Payment Gateway Integration with PHP.In this post we will show you wordpress plugin require another plugin, hear for callback url in paytm integration we will give you demo and example for implement.In this post, we will learn about paytm payment gateway integration in android with an example.
Paytm Payment Gateway Integration with PHP
There are the Following The simple About paytm gratification api Full Information With Example and source code.
As I will cover this Post with live Working example to develop How we can integrate Paytm payment gateway using PHP, so the Laravel 6 Paytm Payment Gateway Integration Using PHP is used for this example is following below.
Simple Paytm is a very famous and best way to make payments these some days. To step by step here explain into php Paytm source code integrate Paytm in our popular blog website we need to follow the simple below steps –
Step 1. Paytm create an account
First of all, we need to make an account devloper Like as at Sign Up/Register Paytm Account as well as here retrive our main merchant ID as well Secret Key.
and then we can start PHP source coding in our site to use the Paytm. First of all, we will setting / configure the Paytm with mode of the test credentials to test our source code.
Step 2. configure the Paytm with test credentials
(filename – config.php)
[php]
define(‘PAYTM_ENVIRONMENT’, ‘TEST’); // PROD for live payment
define(‘PAYTM_MERCHANT_KEY’, ‘xxxxxxxxxxxxxxx’);
define(‘PAYTM_MERCHANT_MID’, xxxxxxxxxxxxxxxx);
define(‘PAYTM_MERCHANT_WEBSITE’, “WEBSTAGING”);
define(‘PAYTM_REDIRECT_URL’, “http://localhost/paytm/Response.php”);
$PAYTM_TXN_URL=’https://securegw-stage.paytm.in/theia/processTransaction’;
if (PAYTM_ENVIRONMENT == ‘PROD’) {
$PAYTM_TXN_URL=’https://securegw.paytm.in/theia/processTransaction’;
}
define(‘PAYTM_TXN_URL’, $PAYTM_TXN_URL);
[/php]
Step 3. create the payment form
Now I shall make a new file(index.php) to make the payment form which will have the amount to be payment/paid as well as other more useful needed details –