Steps to integrate Easebuzz payment gateway by using Core PHP
Pay with Easebuzz is a payment gateway aggregator who offers an electronic payment service for any merchant website irrespective of their backend technology.
How To get Easebuzz Payment Gateway
1. Sign up on easebuzz and upload your required documents.
2. Request for test credentials and integrate payment gateway.
3. Change credentials to production and start collecting payments online.
4. You can also use your Easebuzz account to also receive payments by creating links, or Easepay.
Integration proccess using Core PHP
1. After downloaded payment gateway kit copy and paste easebuzz-lib folder in your's project directory.
2. Create Two PHP files easebuzz.php and response.php
3. Than include "include_once('easebuzz-lib/easebuzz_payment_gateway.php'); " in easebuzz.php file.
4. Next Set Environment $MERCHANT_KEY, $SALT and $ENV.
$MERCHANT_KEY = "11PKP71CDZ3";
$SALT = "DEF78E8IXY";
$ENV = "test"; // set enviroment name
5. create Easebuzz class object and pass $MERCHANT_KEY, $SALT and $ENV.
$easebuzzObj = new Easebuzz($MERCHANT_KEY, $SALT, $ENV);
6. call Easebuzz class methods and function based on your's requirements.
a). Initiate Payment API POST Format and call initiatePaymentAPI
$postData = array (
"txnid" => "T3SAT0B5OL",
"amount" => "100.0",
"firstname" => "jitendra",
"email" => "test@gmail.com",
"phone" => "1231231235",
"productinfo" => "Laptop",
"surl" => "http://localhost:3000/response.php",
"furl" => "http://localhost:3000/response.php",
"udf1" => "aaaa",
"udf2" => "aaaa",
"udf3" => "aaaa",
"udf4" => "aaaa",
"udf5" => "aaaa",
"address1" => "aaaa",
"address2" => "aaaa",
"city" => "aaaa",
"state" => "aaaa",
"country" => "aaaa",
"zipcode" => "123123"
);
$easebuzzObj->initiatePaymentAPI($postData);
b). Transaction API POST Format and call transaction API
$postData = array (
"txnid" => "TZIF0SS24C",
"amount" => "1.03",
"email" => "test@gmail.com",
"phone" => "1231231235"
);
$result = $easebuzzObj->transactionAPI($postData);
7. Process is completed.
Conclusion
So we can see how to integrate easebuzz payment gateway.
Please let us know if you are facing any issue while payment.
Also Provide
GST billing software
Stock Management software
Mobile application development
Payment Gateway Integration(core PHP, Laravel and Python)
- EazyPay Payment Gateway Integration PHP
- Bankonnect Payment Gateway Integration
- Razorpay Payment Gateway Integration Service
- Easebuzz Payment Gateway Integration using core PHP
Prime Programmer
8795202855
8795202855
No comments:
Post a Comment