{"id":376427,"date":"2023-05-03T13:27:35","date_gmt":"2023-05-03T13:27:35","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=376427"},"modified":"2026-02-27T10:46:18","modified_gmt":"2026-02-27T10:46:18","slug":"how-to-create-a-payment-gateway-extension-in-woocommerce","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/","title":{"rendered":"How to create a payment gateway extension in WooCommerce"},"content":{"rendered":"\n<p>In this article, we will take a look at how to create a custom payment gateway in WooCommerce payment.<\/p>\n\n\n\n<p>Are you looking to add a custom payment gateway to your WooCommerce online store?<\/p>\n\n\n\n<p>WooCommerce, being one of the most <a href=\"https:\/\/webkul.com\/blog\/top-10-open-source-and-free-ecommerce-platforms\/\">popular e-commerce platforms<\/a>, offers flexibility and customization options for integrating various payment gateways to cater to your specific business needs.<\/p>\n\n\n\n<p>In this blog post, we will provide you with a step-by-step guide on how to create a custom payment gateway in WooCommerce.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Create a Custom Payment Gateway?<\/h2>\n\n\n\n<p>A payment gateway is a critical component of any online store as it facilitates the secure processing of online payments from customers. <\/p>\n\n\n\n<p>While WooCommerce offers several built-in payment gateways, there may be instances where you need to add a custom payment gateway to meet unique requirements.<\/p>\n\n\n\n<p>Creating a custom payment gateway allows you to integrate third-party payment processors, payment gateways from local banks, or custom payment methods that are specific to your business.<\/p>\n\n\n\n<p>This enables you to offer a seamless checkout experience to your customers and accept payments in the way that works best for your business.<\/p>\n\n\n\n<p>If you require expert assistance or want to develop custom unique functionality, <a href=\"https:\/\/webkul.com\/hire-woocommerce-developers\/\">h<\/a><a href=\"https:\/\/webkul.com\/hire-woocommerce-developers\/\" target=\"_blank\" rel=\"noreferrer noopener\">ire WooCommerce Developers<\/a>\u00a0for your project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a payment gateway extention<\/h2>\n\n\n\n<p><strong>init_form_fields():<\/strong> This function defines the settings fields that will be displayed in the WooCommerce admin settings page for your custom payment gateway. <\/p>\n\n\n\n<p>You can specify the type of fields, their labels, and their default values.<\/p>\n\n\n\n<p><strong>init_settings():<\/strong> This function initializes the settings for your custom payment gateway. You can set default values for your settings here.<\/p>\n\n\n\n<p><strong>process_payment($order_id):<\/strong> This function is called when a customer submits an order with your custom payment gateway selected. <\/p>\n\n\n\n<p>It handles the processing of the payment and returns the result, which can be either success, failure, or an error message.<\/p>\n\n\n\n<p><strong>payment_fields():<\/strong> This function displays the fields that the customer needs to fill in during the checkout process, such as credit card information or any other required information for your custom payment gateway.<\/p>\n\n\n\n<p><strong>validate_fields():<\/strong> This function validates the fields submitted by the customer during the checkout process. <\/p>\n\n\n\n<p>You can perform any necessary validation, such as checking for valid credit card information or verifying other required fields.<\/p>\n\n\n\n<p><strong>process_refund($order_id, $amount = null, $reason = &#8221;):<\/strong> This function handles the refund process for your custom payment gateway. It can process partial or full refunds and returns the result.<\/p>\n\n\n\n<p><strong>admin_options():<\/strong> This function displays the settings fields in the WooCommerce admin settings page for your custom payment gateway, allowing the admin to configure the settings.<\/p>\n\n\n\n<p>we offer <a href=\"https:\/\/webkul.com\/woocommerce-payment-method-development\/\">WooCommerce Payment Method Development<\/a> services to help businesses integrate custom payment gateways seamlessly.<\/p>\n\n\n\n<p><strong>Step 1: Define the Custom Payment Gateway Class<\/strong><\/p>\n\n\n\n<p>To create a custom payment gateway, you need to define a class that extends the WooCommerce Payment Gateway API. Here&#8217;s an example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class Custom_Payment_Gateway extends WC_Payment_Gateway {\n\/\/ Constructor for initializing the payment gateway\npublic function __construct() {\n$this-&gt;id = 'custom_payment_gateway';\n$this-&gt;method_title = 'Custom Payment Gateway';\n$this-&gt;method_description = 'Add a custom description here.';\n$this-&gt;has_fields = true;\n$this-&gt;init_form_fields();\n$this-&gt;init_settings();\n$this-&gt;title = $this-&gt;get_option('title');\n$this-&gt;description = $this-&gt;get_option('description');\n\/\/ Add more settings here\n\/\/ ...\nadd_action('woocommerce_update_options_payment_gateways_' . $this-&gt;id, array($this, 'process_admin_options'));\n}\n\n\/\/ Initialize settings fields\npublic function init_form_fields() {\n$this-&gt;form_fields = array(\n'title' =&gt; array(\n'title' =&gt; __('Title', 'woocommerce'),\n'type' =&gt; 'text',\n'description' =&gt; __('This controls the title displayed during checkout.', 'woocommerce'),\n'default' =&gt; __('Custom Payment Gateway', 'woocommerce'),\n'desc_tip' =&gt; true,\n),\n'description' =&gt; array(\n'title' =&gt; __('Description', 'woocommerce'),\n'type' =&gt; 'textarea',\n'description' =&gt; __('This controls the description displayed during checkout.', 'woocommerce'),\n'default' =&gt; __('Pay using Custom Payment Gateway', 'woocommerce'),\n'desc_tip' =&gt; true,\n),\n\/\/ Add more fields here\n\/\/ ...\n);\n}\n\n\/\/ Process payment\npublic function process_payment($order_id) {\n\/\/ Handle payment processing logic here\n\/\/ ...\n}\n\n\/\/ Display payment fields during checkout\npublic function payment_fields() {\n\/\/ Display payment fields such as credit card info or other required info\n\/\/ ...\n}\n\/\/ Validate payment fields\npublic function validate_fields() {\n\/\/ Validate payment fields submitted by the customer\n\/\/ ...\n}\n}\n<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 2: Add Hooks and Filters<\/strong><\/p>\n\n\n\n<p>To integrate your custom payment gateway into the WooCommerce checkout process, you&#8217;ll need to add appropriate hooks and filters. Here&#8217;s an example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Add custom payment gateway to available payment gateways in checkout\nadd_filter('woocommerce_payment_gateways', 'add_custom_payment_gateway');\nfunction add_custom_payment_gateway($gateways) {\n$gateways[] = 'Custom_Payment_Gateway';\nreturn $gateways;\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">View of payment gateway<\/h2>\n\n\n\n<p>After completed these two steps <strong>custom payment gateway<\/strong> listed in  <strong>Woocommerce-&gt;settings-&gt;payment<\/strong>s section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"587\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png\" alt=\"create-a-payment-gateway-extension\" class=\"wp-image-377675\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-300x147.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-250x122.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-768x376.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension.png 1291w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 3: Configure your WooCommerce payment gateway.<\/strong><\/p>\n\n\n\n<p>Now it\u2019s time to configure your WooCommerce payment gateway according to your website and needs. The plugin you choose will offer additional details about how to configure it to your specific needs.<\/p>\n\n\n\n<p>Take another look at the screenshot above. You\u2019ll click the&nbsp;<em>Set up<\/em>&nbsp;button if this is the first time you\u2019re configuring the payment gateway.<\/p>\n\n\n\n<p>To make any additional changes after set-up, you\u2019ll click the&nbsp;<em>Manage<\/em>&nbsp;button.<\/p>\n\n\n\n<p><strong>Step 4: Checkout process of payment gateway<\/strong><\/p>\n\n\n\n<p>After configuration the payment gateway.Test on the checkout page after added the item into the cart.<\/p>\n\n\n\n<p>On checkout page, payment option will be show in payment list. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"536\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension-1200x536.png\" alt=\"payment-gateway-extension\" class=\"wp-image-378480\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension-1200x536.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension-300x134.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension-250x112.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension-768x343.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension-604x270.png 604w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/payment-gateway-extension.png 1225w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 5: Test Your Custom Payment Gateway<\/strong><\/p>\n\n\n\n<p>Thoroughly test your custom payment gateway to ensure it&#8217;s working correctly. Test scenarios such as successful payments, failed payments, refunds, and error handling.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 6: Deploy Your Custom Payment Gateway<\/strong><\/p>\n\n\n\n<p>Once you&#8217;ve tested and verified that your custom payment gateway is working correctly.<\/p>\n\n\n\n<p>You can deploy it on your live WooCommerce store by uploading the plugin to your WordPress plugins directory and activating it in your admin dashboard.<\/p>\n\n\n\n<p>By following these steps and using the example provided.<\/p>\n\n\n\n<p>You can create a custom payment gateway in WooCommerce to offer unique payment options to your customers.<\/p>\n\n\n\n<p>Remember to thoroughly test your custom payment gateway before deploying it to your live store. <\/p>\n\n\n\n<p>To ensure a seamless and secure checkout experience for your customers.<\/p>\n\n\n\n<p>We have multiple popular payment gateway addon like: <a href=\"https:\/\/store.webkul.com\/woocommerce-multivendor-paypal-commerce.html\">Woocommerce Marketplace Paypal Commerce<\/a> and other <a href=\"https:\/\/store.webkul.com\/catalogsearch\/result\/?cat=All+Categories&amp;q=Payment+Gateway+for+WooCommerce\">payment gateway<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Support<\/h2>\n\n\n\n<p>For any technical assistance&nbsp;kindly <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">raise&nbsp;a ticket<\/a>&nbsp;or&nbsp;reach&nbsp;us by email at&nbsp;support@webkul.com. Thanks for Your Time! Have a Good Day!<\/p>\n\n\n\n<p>Also, discover various solutions to add more features and enhance your online store by visiting the&nbsp;<a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce plugins<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will take a look at how to create a custom payment gateway in WooCommerce payment. Are you looking to add a custom payment gateway to your WooCommerce online store? WooCommerce, being one of the most popular e-commerce platforms, offers flexibility and customization options for integrating various payment gateways to cater to <a href=\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":508,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3656,38,4706,1369,1468,1511],"class_list":["post-376427","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-custom-payment-method","tag-extensions","tag-gateway","tag-payment-gateway","tag-woocommerce","tag-woocommerce-plugins"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create payment gateway in WooCommerce - Webkul Blog<\/title>\n<meta name=\"description\" content=\"woocommerce custom payment gateway, payment gateway extension,payment gateways plugin, create a custom payment gateways extension\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create payment gateway in WooCommerce - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"woocommerce custom payment gateway, payment gateway extension,payment gateways plugin, create a custom payment gateways extension\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-03T13:27:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-27T10:46:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png\" \/>\n<meta name=\"author\" content=\"Gaurav Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gaurav Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\"},\"author\":{\"name\":\"Gaurav Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c\"},\"headline\":\"How to create a payment gateway extension in WooCommerce\",\"datePublished\":\"2023-05-03T13:27:35+00:00\",\"dateModified\":\"2026-02-27T10:46:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\"},\"wordCount\":838,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png\",\"keywords\":[\"custom payment method\",\"extensions\",\"Gateway\",\"Payment Gateway\",\"WooCommerce\",\"woocommerce plugins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\",\"name\":\"How to create payment gateway in WooCommerce - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png\",\"datePublished\":\"2023-05-03T13:27:35+00:00\",\"dateModified\":\"2026-02-27T10:46:18+00:00\",\"description\":\"woocommerce custom payment gateway, payment gateway extension,payment gateways plugin, create a custom payment gateways extension\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension.png\",\"width\":1291,\"height\":632,\"caption\":\"create-a-payment-gateway-extension\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a payment gateway extension in WooCommerce\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c\",\"name\":\"Gaurav Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gaurav Singh\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/gaurav-singh737\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create payment gateway in WooCommerce - Webkul Blog","description":"woocommerce custom payment gateway, payment gateway extension,payment gateways plugin, create a custom payment gateways extension","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:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to create payment gateway in WooCommerce - Webkul Blog","og_description":"woocommerce custom payment gateway, payment gateway extension,payment gateways plugin, create a custom payment gateways extension","og_url":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-05-03T13:27:35+00:00","article_modified_time":"2026-02-27T10:46:18+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png","type":"","width":"","height":""}],"author":"Gaurav Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gaurav Singh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/"},"author":{"name":"Gaurav Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c"},"headline":"How to create a payment gateway extension in WooCommerce","datePublished":"2023-05-03T13:27:35+00:00","dateModified":"2026-02-27T10:46:18+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/"},"wordCount":838,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png","keywords":["custom payment method","extensions","Gateway","Payment Gateway","WooCommerce","woocommerce plugins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/","url":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/","name":"How to create payment gateway in WooCommerce - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension-1200x587.png","datePublished":"2023-05-03T13:27:35+00:00","dateModified":"2026-02-27T10:46:18+00:00","description":"woocommerce custom payment gateway, payment gateway extension,payment gateways plugin, create a custom payment gateways extension","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/create-a-payment-gateway-extension.png","width":1291,"height":632,"caption":"create-a-payment-gateway-extension"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-payment-gateway-extension-in-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a payment gateway extension in WooCommerce"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c","name":"Gaurav Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gaurav Singh"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/gaurav-singh737\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/508"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=376427"}],"version-history":[{"count":32,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376427\/revisions"}],"predecessor-version":[{"id":528610,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376427\/revisions\/528610"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=376427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=376427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=376427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}