{"id":376591,"date":"2023-04-13T12:33:30","date_gmt":"2023-04-13T12:33:30","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=376591"},"modified":"2023-04-20T06:50:58","modified_gmt":"2023-04-20T06:50:58","slug":"how-to-create-cs-cart-payment-processor","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/","title":{"rendered":"How to create a Payment Method in CS-Cart"},"content":{"rendered":"\n<p>We&#8217;ll look how developer&#8217;s create a payment method in Cs-Cart store to provide a smooth checkout experience for customers.<\/p>\n\n\n\n<p>To begin, you should choose a payment gateway that fits your business needs. Once you select a payment method, you must configure it by providing necessary details, such as the API key, secret key, and other relevant information. You may also need to enable certain settings, such as test mode, refunds, or recurring payments. After you configure the payment method, you should test it to ensure it is working correctly. In the following sections, we will provide more detail on each step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">File structure to create a payment method in CS-Cart<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">  app \n    |_Addons\n        |_your_addon_name\n           |_func.php\n           |_addon.xml              \n           |_payments\n            |_script.php\n            \n            \nDesign\n    |_backend\n        |_templates\n            |_addons\n                |_your_addon_name\n                    |_views\n                        |_orders\n                            |_components\n                                |_payments\n                                    |_processor.tpl\n<\/pre>\n\n\n\n<p>You must know how to create a <a href=\"https:\/\/docs.cs-cart.com\/4.0.x\/addons\/tutorials\/hello_world.html#:~:text=Go%20to%20the%20app%2Faddons,be%20operational%20is%20the%20addon.\" target=\"_blank\" rel=\"noreferrer noopener\">New addon<\/a> in CS-Cart.<\/p>\n\n\n\n<p>Add a function that is called from your <strong>func.php<\/strong> file during the installation of addon, as seen below:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Function runs on installation of add-on\n *\n * @return void\n *\/\nfunction fn_Stripe_Refund_install()\n{\n    $data = array(\n        &#039;processor&#039;             =&gt; &#039;Stripe Payment Gateway&#039;,\n        &#039;processor_script&#039;      =&gt; &#039;wk_stripe.php&#039;,\n        &#039;processor_template&#039;    =&gt;             &#039;addons\/stripe_refund\/views\/orders\/components\/payments\/cc_stripe.tpl&#039;,\n        &#039;admin_template&#039;        =&gt; &#039;wk_stripe.tpl&#039;,\n        &#039;callback&#039;              =&gt; &#039;N&#039;,\n        &#039;type&#039;                  =&gt; &#039;P&#039;,\n        &#039;addon&#039;                 =&gt; &#039;stripe_refund&#039;\n    );\n    db_query(&#039;INSERT INTO ?:payment_processors ?e&#039;, $data);\n}<\/pre>\n\n\n\n<p>A&nbsp;<a href=\"https:\/\/docs.cs-cart.com\/latest\/developer_guide\/addons\/tutorials\/payment_processor_addon.html\" target=\"_blank\" rel=\"noreferrer noopener\">processor<\/a>&nbsp;is included which is selected on the payments page. If you want to use the credit card fields on the checkout page, use \u201c<strong>cc.tpl<\/strong>\u201d in place of \u201c<strong>cc_stripe.tpl<\/strong>\u201d. Click on Install on the addons page to install your addon.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"675\" data-id=\"377417\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png\" alt=\"Screenshot-from-2023-04-18-19-04-53\" class=\"wp-image-377417\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-300x169.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-250x141.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-768x432.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53.png 1366w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Add payment method<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>Let&#8217;s go on to incorporating the payment feature into addon when it has been installed.<\/p>\n\n\n\n<p>Then, while running the function in func.php, create a new file with the name specified under processor script within the &#8220;payments&#8221; folder created in addons directory, for example, &#8220;app\/addons\/stripe refund\/payments.&#8221;<\/p>\n\n\n\n<p>This file will be used in creating your payment method.<\/p>\n\n\n\n<p>Create a new file by going to &#8220;design\/backend\/templates\/addons\/{your_addon_name}\/ views\/payments\/components\/cc_processors\/processor.tpl directory. When choosing a payment processor or creating a new payment method, such as API keys, tokens, payment modes, order status after payment, etc., and insert the HTML you wish to display there. For example<\/p>\n\n\n\n<p><strong>processor.tpl<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;div class=&quot;control-group&quot;&gt;\n    &lt;label class=&quot;control-label&quot;&gt;{__(&quot;mode&quot;)}:&lt;\/label&gt;\n    &lt;div class=&quot;controls&quot;&gt;\n        &lt;label class=&quot;radio inline&quot;&gt;\n            &lt;input type=&quot;radio&quot; name=&quot;processor_params&#091;test_mode]&quot; value=&quot;Y&quot; {if $processor_data.processor_params.test_mode == &quot;Y&quot;}checked{\/if}&gt;\n            {__(&quot;test&quot;)}\n        &lt;\/label&gt;\n        &lt;label class=&quot;radio inline&quot;&gt;\n            &lt;input type=&quot;radio&quot; name=&quot;processor_params&#091;test_mode]&quot; value=&quot;N&quot; {if $processor_data.processor_params.test_mode == &quot;N&quot; || empty($processor_data.processor_params.test_mode)}checked{\/if}&gt;\n            {__(&quot;live&quot;)}\n        &lt;\/label&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div class=&quot;control-group&quot;&gt;\n    &lt;label class=&quot;control-label&quot;&gt;{__(&quot;login_id&quot;)}:&lt;\/label&gt;\n    &lt;div class=&quot;controls&quot;&gt;\n        &lt;input type=&quot;text&quot; name=&quot;processor_params&#091;login_id]&quot; class=&quot;input-large&quot; value=&quot;{$processor_data.processor_params.login_id|escape}&quot; \/&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div class=&quot;control-group&quot;&gt;\n    &lt;label class=&quot;control-label&quot;&gt;{__(&quot;transaction_key&quot;)}:&lt;\/label&gt;\n    &lt;div class=&quot;controls&quot;&gt;\n        &lt;input type=&quot;text&quot; name=&quot;processor_params&#091;transaction_key]&quot; class=&quot;input-large&quot; value=&quot;{$processor_data.processor_params.transaction_key|escape}&quot; \/&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div class=&quot;control-group&quot;&gt;\n    &lt;label class=&quot;control-label&quot;&gt;{__(&quot;description&quot;)}:&lt;\/label&gt;\n    &lt;div class=&quot;controls&quot;&gt;\n        &lt;input type=&quot;text&quot; name=&quot;processor_params&#091;description]&quot; class=&quot;input-large&quot; value=&quot;{$processor_data.processor_params.description|escape}&quot; \/&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div class=&quot;control-group&quot;&gt;\n    &lt;label class=&quot;control-label&quot;&gt;{__(&quot;sort_order&quot;)}:&lt;\/label&gt;\n    &lt;div class=&quot;controls&quot;&gt;\n        &lt;input type=&quot;text&quot; name=&quot;processor_params&#091;sort_order]&quot; class=&quot;input-mini&quot; value=&quot;{$processor_data.processor_params.sort_order|default:&#039;0&#039;}&quot; \/&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"529\" data-id=\"377136\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-17-163417-1200x529.png\" alt=\"Configuration page\" class=\"wp-image-377136\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-17-163417-1200x529.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-17-163417-300x132.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-17-163417-250x110.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-17-163417-768x339.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-17-163417.png 1222w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Configuration page <\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>Now you are all set to create a new payment method, select the processor, and fill up all the required details under configure tab.<\/p>\n\n\n\n<p>The main part left is to configure the payment file which we have created under the \u201cpayments\u201d folder. That file will be called when a customer clicks on \u201cPlace Order\u201d.<\/p>\n\n\n\n<p><strong>script.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nuse Tygh\\Registry;\n\nif (!defined(&#039;BOOTSTRAP&#039;)) { die(&#039;Access denied&#039;); }\n\n\/\/ Load the order details from the payment gateway callback\n$order_id = $_REQUEST&#091;&#039;order_id&#039;];\n$order_info = fn_get_order_info($order_id);\n\n\/\/ Verify the payment gateway callback\n$payment_method_id = $order_info&#091;&#039;payment_method&#039;]&#091;&#039;payment_id&#039;];\n$processor_data = fn_get_payment_method_data($payment_method_id);\nif ($processor_data&#091;&#039;processor_params&#039;]&#091;&#039;merchant_id&#039;] != $_REQUEST&#091;&#039;merchant_id&#039;]) {\n    fn_set_notification(&#039;E&#039;, __(&#039;error&#039;), __(&#039;payment_verification_failed&#039;));\n    fn_order_placement_routines(&#039;route&#039;, $order_info&#091;&#039;order_id&#039;], false, false, true);\n    exit;\n}\n\n\/\/ Update the order status based on the payment gateway callback\nif ($_REQUEST&#091;&#039;status&#039;] == &#039;success&#039;) {\n    $result = fn_update_order_payment_info($order_id, $_REQUEST&#091;&#039;transaction_id&#039;], $_REQUEST&#091;&#039;amount&#039;], $_REQUEST&#091;&#039;currency&#039;], time());\n    if ($result === true) {\n        $order_status = &#039;P&#039;; \/\/ Payment successful\n    } else {\n        $order_status = &#039;F&#039;; \/\/ Payment failed\n    }\n} else {\n    $order_status = &#039;O&#039;; \/\/ Order open\n}\n\n\/\/ Update the order status in the database\nfn_update_order_status($order_id, $order_status, &#039;&#039;, false);\n\n\/\/ Send a notification email to the customer\nfn_send_notification($order_info, &#039;C&#039;);\n\n\/\/ Return a success response to the payment gateway\necho &#039;OK&#039;;<\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"978\" height=\"612\" data-id=\"377432\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-20-36.png\" alt=\"Screenshot-from-2023-04-18-19-20-36\" class=\"wp-image-377432\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-20-36.png 978w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-20-36-300x188.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-20-36-250x156.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-20-36-768x481.png 768w\" sizes=\"(max-width: 978px) 100vw, 978px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Checkout Page<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>If your API includes a return URL, it should be of the format like this \u2013 f<code>n_url(\"payment_notification.return?payment={payment_file_name}&amp;order_id=$order_id\", AREA, 'current');<\/code><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Now, basic payment method in CS-cart is created and is ready to be used by the customers.<\/p>\n<\/blockquote>\n\n\n\n<p>So, that was much about the process to create a payment method in CS-cart. If you need custom\u00a0<a href=\"https:\/\/webkul.com\/cs-cart-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">CS-Cart Development services<\/a>\u00a0then feel free to\u00a0<a href=\"https:\/\/webkul.com\/contacts\" target=\"_blank\" rel=\"noreferrer noopener\">reach us<\/a>\u00a0and also explore our exclusive range of\u00a0<a href=\"https:\/\/store.webkul.com\/CS-Cart.html\" target=\"_blank\" rel=\"noreferrer noopener\">CS-Cart Addons<\/a>.<br>!!Have a Great Day Ahead!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll look how developer&#8217;s create a payment method in Cs-Cart store to provide a smooth checkout experience for customers. To begin, you should choose a payment gateway that fits your business needs. Once you select a payment method, you must configure it by providing necessary details, such as the API key, secret key, and other <a href=\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":480,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1496,1],"tags":[1661,7594],"class_list":["post-376591","post","type-post","status-publish","format-standard","hentry","category-cs-cart","category-uncategorized","tag-cs-cart","tag-payment-method"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a Payment Method in CS-Cart - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Learn how to create a payment method in CS-Cart with our comprehensive guide. Follow these easy steps to create a payment gateway, configure its settings, and test the payment method for a seamless checkout experience. Improve your online store&#039;s payment options today with our expert advice on creating payment methods in CS-Cart.\" \/>\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-cs-cart-payment-processor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a Payment Method in CS-Cart - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a payment method in CS-Cart with our comprehensive guide. Follow these easy steps to create a payment gateway, configure its settings, and test the payment method for a seamless checkout experience. Improve your online store&#039;s payment options today with our expert advice on creating payment methods in CS-Cart.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\" \/>\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-04-13T12:33:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-20T06:50:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png\" \/>\n<meta name=\"author\" content=\"Prashant Bisht\" \/>\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=\"Prashant Bisht\" \/>\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-cs-cart-payment-processor\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\"},\"author\":{\"name\":\"Prashant Bisht\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/97d715f8b3484277df4f66e20d11a5ed\"},\"headline\":\"How to create a Payment Method in CS-Cart\",\"datePublished\":\"2023-04-13T12:33:30+00:00\",\"dateModified\":\"2023-04-20T06:50:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\"},\"wordCount\":448,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png\",\"keywords\":[\"cs-cart\",\"payment method\"],\"articleSection\":[\"Cs Cart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\",\"name\":\"How to create a Payment Method in CS-Cart - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png\",\"datePublished\":\"2023-04-13T12:33:30+00:00\",\"dateModified\":\"2023-04-20T06:50:58+00:00\",\"description\":\"Learn how to create a payment method in CS-Cart with our comprehensive guide. Follow these easy steps to create a payment gateway, configure its settings, and test the payment method for a seamless checkout experience. Improve your online store's payment options today with our expert advice on creating payment methods in CS-Cart.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53.png\",\"width\":1366,\"height\":768,\"caption\":\"Screenshot-from-2023-04-18-19-04-53\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a Payment Method in CS-Cart\"}]},{\"@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\/97d715f8b3484277df4f66e20d11a5ed\",\"name\":\"Prashant Bisht\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?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\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Prashant Bisht\"},\"description\":\"CS-Cart developer with expertise in SAAS and jQuery. He specializes in CS-Cart Payment and Shipping Integration Services, App Development, and React development. Prashant delivers innovative and efficient solutions that enhance e-commerce functionality and drive business growth.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/prashantbisht-cscart490\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a Payment Method in CS-Cart - Webkul Blog","description":"Learn how to create a payment method in CS-Cart with our comprehensive guide. Follow these easy steps to create a payment gateway, configure its settings, and test the payment method for a seamless checkout experience. Improve your online store's payment options today with our expert advice on creating payment methods in CS-Cart.","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-cs-cart-payment-processor\/","og_locale":"en_US","og_type":"article","og_title":"How to create a Payment Method in CS-Cart - Webkul Blog","og_description":"Learn how to create a payment method in CS-Cart with our comprehensive guide. Follow these easy steps to create a payment gateway, configure its settings, and test the payment method for a seamless checkout experience. Improve your online store's payment options today with our expert advice on creating payment methods in CS-Cart.","og_url":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-04-13T12:33:30+00:00","article_modified_time":"2023-04-20T06:50:58+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png","type":"","width":"","height":""}],"author":"Prashant Bisht","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Prashant Bisht","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/"},"author":{"name":"Prashant Bisht","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/97d715f8b3484277df4f66e20d11a5ed"},"headline":"How to create a Payment Method in CS-Cart","datePublished":"2023-04-13T12:33:30+00:00","dateModified":"2023-04-20T06:50:58+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/"},"wordCount":448,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png","keywords":["cs-cart","payment method"],"articleSection":["Cs Cart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/","url":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/","name":"How to create a Payment Method in CS-Cart - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53-1200x675.png","datePublished":"2023-04-13T12:33:30+00:00","dateModified":"2023-04-20T06:50:58+00:00","description":"Learn how to create a payment method in CS-Cart with our comprehensive guide. Follow these easy steps to create a payment gateway, configure its settings, and test the payment method for a seamless checkout experience. Improve your online store's payment options today with our expert advice on creating payment methods in CS-Cart.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Screenshot-from-2023-04-18-19-04-53.png","width":1366,"height":768,"caption":"Screenshot-from-2023-04-18-19-04-53"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-payment-processor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a Payment Method in CS-Cart"}]},{"@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\/97d715f8b3484277df4f66e20d11a5ed","name":"Prashant Bisht","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?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\/461cd2edae22243f943bf09cb376ba109a0cdaf72da0374135fa6cf2566976ed?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Prashant Bisht"},"description":"CS-Cart developer with expertise in SAAS and jQuery. He specializes in CS-Cart Payment and Shipping Integration Services, App Development, and React development. Prashant delivers innovative and efficient solutions that enhance e-commerce functionality and drive business growth.","url":"https:\/\/webkul.com\/blog\/author\/prashantbisht-cscart490\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376591","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\/480"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=376591"}],"version-history":[{"count":55,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376591\/revisions"}],"predecessor-version":[{"id":379977,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376591\/revisions\/379977"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=376591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=376591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=376591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}