{"id":55,"date":"2022-03-24T10:18:00","date_gmt":"2022-03-24T04:48:00","guid":{"rendered":"http:\/\/blog.payumoney.com\/?p=55"},"modified":"2026-02-26T15:48:14","modified_gmt":"2026-02-26T10:18:14","slug":"how-payment-gateway-integration-with-website-works","status":"publish","type":"post","link":"https:\/\/payu.in\/blog\/how-payment-gateway-integration-with-website-works\/","title":{"rendered":"How Does Payment Gateway Integration Work on Websites?"},"content":{"rendered":"<p style=\"text-align: justify;\">A payment gateway binds together all the stakeholders involved in a transaction with a buyer, merchant, buyer\u2019s bank and seller\u2019s 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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14701\" src=\"https:\/\/payu.in\/blog\/wp-content\/uploads\/2022\/09\/How-does-a-payment-gateway-integration-work.png\" alt=\"\" width=\"1200\" height=\"480\" \/><\/p>\n<p style=\"text-align: justify;\">The image above shows the main integration steps.<\/p>\n<h2 style=\"text-align: justify;\"><strong><span style=\"color: #43c6ac;\">API Integration Steps<\/span><\/strong><\/h2>\n<h3 style=\"text-align: justify;\"><strong>Merchant website<\/strong><\/h3>\n<p style=\"text-align: justify;\">To initiate a transaction, the merchant generates a\u00a0<strong>POST REQUEST<\/strong>\u00a0(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\u2019s 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.<\/p>\n<h3 style=\"text-align: justify;\">PayU Payment Gateway&#8217;s Website<\/h3>\n<p style=\"text-align: justify;\">When the POST request reaches PayU, the customer would be re-directed to payment gateway\u2019s (PayU\u2019s) payment page. The customer now selects the particular <a href=\"https:\/\/payu.in\/payment-gateway\/\">payment option on payment gateway\u2019s (PayU\u2019s) page (Credit Card\/Debit Card\/Net Banking etc)<\/a> and clicks on \u2018Make Payment\u2019. Now, payment gateway re-directs the customer to the chosen bank. The customer goes through the necessary authorization\/authentication process at bank\u2019s login page, and the bank gives the success\/failure response back to the\u00a0<a href=\"https:\/\/payu.in\/payment-gateway\/\">payment gateway<\/a>.<\/p>\n<ol style=\"text-align: justify;\">\n<li>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\u2019s end.<\/li>\n<li>Our payment gateway marks the transaction status on the basis of response received from Bank.<\/li>\n<li>A final transaction response is sent to the merchant through a\u00a0POST 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.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/payu.in\/blog\/ways-to-integrate-payment-gateway-api-to-your-website\/\"><em>Read more &#8211;<\/em> How to Integrate a Payment Gateway API into Websites<\/a><\/p>\n<h2 style=\"text-align: justify;\"><span style=\"color: #43c6ac;\"><b>How Different Kits Ease The Payment Gateway Integration Process<\/b><\/span><\/h2>\n<p style=\"text-align: justify;\">Different kits provide different APIs to automate a lot of tasks. PayU provides developers with two kinds of kits for easy integration\u2013 shopping cart integration kits and platform-based integration kits.<\/p>\n<h3 style=\"text-align: justify;\"><b>Shopping Cart Integration Kits<\/b><\/h3>\n<p style=\"text-align: justify;\">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:<\/p>\n<ol style=\"text-align: justify;\">\n<li>Opencart<\/li>\n<li>Interspire<\/li>\n<li>Joomla VirtueMart<\/li>\n<li>Magento<\/li>\n<li>Prestashop<\/li>\n<li>Zencart<\/li>\n<li>CS-Cart<\/li>\n<li>OScommerce<\/li>\n<li>WordPress eCommerce<\/li>\n<li>WordPress wooCommerce<\/li>\n<li>Drupal Ubercart<\/li>\n<li>WHMCS<\/li>\n<\/ol>\n<h3 style=\"text-align: justify;\"><b>Platform-Based Integration Kits<\/b><\/h3>\n<p style=\"text-align: justify;\">PayU currently provides integration kits in 4 different environments<\/p>\n<ul style=\"text-align: justify;\">\n<li>PHP<\/li>\n<li>JSP<\/li>\n<li>.NET<\/li>\n<li>ROR<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">PayU has the easiest and quick payment gateway integration process. Know more about the <a href=\"https:\/\/payu.in\/developer-guide\" target=\"_blank\" rel=\"noopener\">PayU Payment Gateways Integration<\/a>\u00a0with your website now!<\/p>\n<p style=\"text-align: justify;\">Ask us more about PayU website integration process at merchantcare@payu.in<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A payment gateway binds together all the stakeholders involved in a transaction with a buyer, merchant, buyer\u2019s bank and seller\u2019s bank. This is why it takes a long time for&#8230;<\/p>\n","protected":false},"author":10,"featured_media":10804,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[902],"tags":[627,635,646],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Does Payment Gateway Integration Work on Websites?<\/title>\n<meta name=\"description\" content=\"Learn how payment gateway integration works with websites, the step-by-step API process, and how payment gateway integration enables secure online transactions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/payu.in\/blog\/how-payment-gateway-integration-with-website-works\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Does Payment Gateway Integration Work on Websites?\" \/>\n<meta property=\"og:description\" content=\"Learn how payment gateway integration works with websites, the step-by-step API process, and how payment gateway integration enables secure online transactions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/payu.in\/blog\/how-payment-gateway-integration-with-website-works\/\" \/>\n<meta property=\"og:site_name\" content=\"PayU Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PayUind\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/aruntini\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-24T04:48:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:18:14+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/10.10.164.133\/wp-content\/uploads\/2014\/09\/Payment-Gateway-Integration-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1250\" \/>\n\t<meta property=\"og:image:height\" content=\"531\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Arun Agrawal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Arun_2014\" \/>\n<meta name=\"twitter:site\" content=\"@payuind\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arun Agrawal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/\",\"url\":\"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/\",\"name\":\"How Does Payment Gateway Integration Work on Websites?\",\"isPartOf\":{\"@id\":\"https:\/\/payu.in\/blog\/#website\"},\"datePublished\":\"2022-03-24T04:48:00+00:00\",\"dateModified\":\"2026-02-26T10:18:14+00:00\",\"author\":{\"@id\":\"https:\/\/payu.in\/blog\/#\/schema\/person\/732e27b2813be1bb61d4919d6fc30af3\"},\"description\":\"Learn how payment gateway integration works with websites, the step-by-step API process, and how payment gateway integration enables secure online transactions.\",\"breadcrumb\":{\"@id\":\"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/payu.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PayU Guides\",\"item\":\"https:\/\/payu.in\/blog\/category\/payu-guides\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How Does Payment Gateway Integration Work on Websites?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/payu.in\/blog\/#website\",\"url\":\"https:\/\/payu.in\/blog\/\",\"name\":\"PayU Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/payu.in\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/payu.in\/blog\/#\/schema\/person\/732e27b2813be1bb61d4919d6fc30af3\",\"name\":\"Arun Agrawal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/payu.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46d4ded4d9835ceecc58fb5ae22ea164?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/46d4ded4d9835ceecc58fb5ae22ea164?s=96&d=mm&r=g\",\"caption\":\"Arun Agrawal\"},\"sameAs\":[\"https:\/\/www.facebook.com\/aruntini\",\"https:\/\/www.linkedin.com\/in\/arun-agarwal-687aa745\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/Arun_2014\"],\"url\":\"https:\/\/payu.in\/blog\/author\/arun\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Does Payment Gateway Integration Work on Websites?","description":"Learn how payment gateway integration works with websites, the step-by-step API process, and how payment gateway integration enables secure online transactions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/payu.in\/blog\/how-payment-gateway-integration-with-website-works\/","og_locale":"en_US","og_type":"article","og_title":"How Does Payment Gateway Integration Work on Websites?","og_description":"Learn how payment gateway integration works with websites, the step-by-step API process, and how payment gateway integration enables secure online transactions.","og_url":"https:\/\/payu.in\/blog\/how-payment-gateway-integration-with-website-works\/","og_site_name":"PayU Blog","article_publisher":"https:\/\/www.facebook.com\/PayUind\/","article_author":"https:\/\/www.facebook.com\/aruntini","article_published_time":"2022-03-24T04:48:00+00:00","article_modified_time":"2026-02-26T10:18:14+00:00","og_image":[{"width":1250,"height":531,"url":"http:\/\/10.10.164.133\/wp-content\/uploads\/2014\/09\/Payment-Gateway-Integration-1.png","type":"image\/png"}],"author":"Arun Agrawal","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Arun_2014","twitter_site":"@payuind","twitter_misc":{"Written by":"Arun Agrawal","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/","url":"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/","name":"How Does Payment Gateway Integration Work on Websites?","isPartOf":{"@id":"https:\/\/payu.in\/blog\/#website"},"datePublished":"2022-03-24T04:48:00+00:00","dateModified":"2026-02-26T10:18:14+00:00","author":{"@id":"https:\/\/payu.in\/blog\/#\/schema\/person\/732e27b2813be1bb61d4919d6fc30af3"},"description":"Learn how payment gateway integration works with websites, the step-by-step API process, and how payment gateway integration enables secure online transactions.","breadcrumb":{"@id":"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/10.10.164.133\/how-payment-gateway-integration-with-website-works\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/payu.in\/blog\/"},{"@type":"ListItem","position":2,"name":"PayU Guides","item":"https:\/\/payu.in\/blog\/category\/payu-guides\/"},{"@type":"ListItem","position":3,"name":"How Does Payment Gateway Integration Work on Websites?"}]},{"@type":"WebSite","@id":"https:\/\/payu.in\/blog\/#website","url":"https:\/\/payu.in\/blog\/","name":"PayU Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/payu.in\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/payu.in\/blog\/#\/schema\/person\/732e27b2813be1bb61d4919d6fc30af3","name":"Arun Agrawal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/payu.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46d4ded4d9835ceecc58fb5ae22ea164?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/46d4ded4d9835ceecc58fb5ae22ea164?s=96&d=mm&r=g","caption":"Arun Agrawal"},"sameAs":["https:\/\/www.facebook.com\/aruntini","https:\/\/www.linkedin.com\/in\/arun-agarwal-687aa745\/","https:\/\/twitter.com\/https:\/\/twitter.com\/Arun_2014"],"url":"https:\/\/payu.in\/blog\/author\/arun\/"}]}},"_links":{"self":[{"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/posts\/55"}],"collection":[{"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":24,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":14703,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions\/14703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/media\/10804"}],"wp:attachment":[{"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/payu.in\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}