A payment gateway binds together all the stakeholders involved in a transaction with a buyer, merchant, buyer’s bank and seller’s bank. This is why it takes a long time for an individual to become fully comfortable in implementing a gateway in a website. A payment gateway integration is crucial for highly successful online transactions. So, we explain here the API calls that usually happen when making a transaction with a payment gateway.

How does a payment gateway integration work

The image above shows the main integration steps.

API Integration Steps

Merchant website

To initiate a transaction, the merchant generates a POST REQUEST (which is a particular mode of interaction on the internet). The request must include mandatory and optional parameters. The mandatory fields include a key (provided by gateway), txn ID (order reference number generated at merchant’s end), amount product info, first name, email, phone, service_provider, and hash (checksum). Merchant also calculates a hash and sends it to the payment gateway.

PayU Payment Gateway’s Website

When the POST request reaches PayU, the customer would be re-directed to payment gateway’s (PayU’s) payment page. The customer now selects the particular payment option on payment gateway’s (PayU’s) page (Credit Card/Debit Card/Net Banking etc) and clicks on ‘Make Payment’. Now, payment gateway re-directs the customer to the chosen bank. The customer goes through the necessary authorization/authentication process at bank’s login page, and the bank gives the success/failure response back to the payment gateway.

  1. When the transaction POST request hits the payment gateway server, a new transaction entry is created in the database. To identify each new transaction in the gateway database, a unique identifier is created every time at gateway’s end.
  2. Our payment gateway marks the transaction status on the basis of response received from Bank.
  3. A final transaction response is sent to the merchant through a POST RESPONSE. In this response, the merchant would receive the final status of the transaction. Merchant will also receive the hash parameter here. This is done to strictly avoid any tampering attempt by the user.

How Different Kits Ease The Payment Gateway Integration Process

Different kits provide different APIs to automate a lot of tasks. PayU provides developers with two kinds of kits for easy integration– shopping cart integration kits and platform-based integration kits.

Shopping Cart Integration Kits

Shopping cart kits follow an easy payment gateway integration procedure with the help of codes and APIs. Currently, the PayU provides more than 30 shopping cart integration kits. Some of which are:

  1. Opencart
  2. Interspire
  3. Joomla VirtueMart
  4. Magento
  5. Prestashop
  6. Zencart
  7. CS-Cart
  8. OScommerce
  9. WordPress eCommerce
  10. WordPress wooCommerce
  11. Drupal Ubercart
  12. WHMCS

Platform-Based Integration Kits

PayU currently provides integration kits in 4 different environments

  • PHP
  • JSP
  • .NET
  • ROR

PayU has the easiest and quick payment gateway integration process. Know more about the PayU Payment Gateways Integration with your website now!

Ask us more about PayU website integration process at merchantcare@payu.in

4