{"id":138690,"date":"2021-04-21T09:15:08","date_gmt":"2021-04-21T09:15:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/guntab-payment-gateway\/"},"modified":"2025-03-17T16:00:15","modified_gmt":"2025-03-17T16:00:15","slug":"guntab-payment-gateway","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/guntab-payment-gateway\/","author":18638728,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.3","stable_tag":"0.3.3","tested":"6.7.5","requires":"4.7","requires_php":"7.2","requires_plugins":null,"header_name":"GunTab Payment Gateway","header_author":"GunTab","header_description":"GunTab is the only safe way to get paid for firearm and ammo online. This free plugin adds a \"Pay with GunTab\" button to your WooCommerce checkout page.","assets_banners_color":"313b43","last_updated":"2025-03-17 16:00:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.guntab.com\/documentation\/woocommerce-plugin","header_author_uri":"https:\/\/www.guntab.com","rating":0,"author_block_rating":0,"active_installs":40,"downloads":6997,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"guntab","date":"2021-06-14 22:00:49"},"0.1.1":{"tag":"0.1.1","author":"guntab","date":"2021-06-19 16:09:48"},"0.1.2":{"tag":"0.1.2","author":"guntab","date":"2021-06-19 16:24:22"},"0.1.3":{"tag":"0.1.3","author":"guntab","date":"2021-12-21 00:26:20"},"0.1.4":{"tag":"0.1.4","author":"guntab","date":"2021-12-21 22:34:23"},"0.1.5":{"tag":"0.1.5","author":"guntab","date":"2022-02-18 21:28:15"},"0.1.6":{"tag":"0.1.6","author":"guntab","date":"2023-02-15 19:53:45"},"0.2.0":{"tag":"0.2.0","author":"guntab","date":"2024-04-17 21:03:14"},"0.2.1":{"tag":"0.2.1","author":"guntab","date":"2024-04-17 21:09:58"},"0.3.0":{"tag":"0.3.0","author":"guntab","date":"2025-01-12 00:19:01"},"0.3.1":{"tag":"0.3.1","author":"guntab","date":"2025-03-17 15:31:21"},"0.3.2":{"tag":"0.3.2","author":"guntab","date":"2025-03-17 15:38:58"},"0.3.3":{"tag":"0.3.3","author":"guntab","date":"2025-03-17 16:00:15"}},"upgrade_notice":{"":"<ul>\n<li>Initial Release<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2518951,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2518951,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544\u00d7500.jpg":{"filename":"banner-1544\u00d7500.jpg","revision":2518951,"resolution":"1544x500","location":"assets","locale":""},"banner-772\u00d7250.jpg":{"filename":"banner-772\u00d7250.jpg","revision":2518951,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.2.0","0.2.1","0.3.0","0.3.1","0.3.2","0.3.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2518923,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2518923,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2518923,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Plugin Settings","2":"WooCommerce Gateway Settings","3":"Checkout Module"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[198683,150369,198681,198682,1887],"plugin_category":[45],"plugin_contributors":[198684],"plugin_business_model":[],"class_list":["post-138690","plugin","type-plugin","status-publish","hentry","plugin_tags-ammunition","plugin_tags-escrow","plugin_tags-firearms","plugin_tags-guns","plugin_tags-payments","plugin_category-ecommerce","plugin_contributors-guntab","plugin_committers-guntab"],"banners":{"banner":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/banner-772\u00d7250.jpg?rev=2518951","banner_2x":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/banner-1544\u00d7500.jpg?rev=2518951","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/icon-128x128.jpg?rev=2518951","icon_2x":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/icon-256x256.jpg?rev=2518951","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/screenshot-1.png?rev=2518923","caption":"Plugin Settings"},{"src":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/screenshot-2.png?rev=2518923","caption":"WooCommerce Gateway Settings"},{"src":"https:\/\/ps.w.org\/guntab-payment-gateway\/assets\/screenshot-3.png?rev=2518923","caption":"Checkout Module"}],"raw_content":"<!--section=description-->\n<p>GunTab is the only transaction platform built for firearm and ammunition e-commerce. It enables you get paid safely and easily online. We even guarantee against chargebacks. Learn more at <a href=\"https:\/\/www.guntab.com\">GunTab.com<\/a>.<\/p>\n\n<h3>Activate the plugin in WordPress<\/h3>\n\n<ol>\n<li>Go to Plugins &gt; Add New.<\/li>\n<li>Search for \"GunTab\".<\/li>\n<li>Select \"Install Now\".<\/li>\n<li>After installation is complete, select \"Activate\".<\/li>\n<\/ol>\n\n<h3>Enable the plugin in WooCommerce<\/h3>\n\n<ol>\n<li>Go to WooCommerce &gt; Settings &gt; Payments.<\/li>\n<li>Select to enable \"GunTab Payments\".<\/li>\n<li>Select \"Save changes\".<\/li>\n<li>After the page reloads, select to \"Manage\" GunTab Payments. Now you may set your preferences.<\/li>\n<\/ol>\n\n<h3>Filters<\/h3>\n\n<p>Alter the invoice data before it gets sent to GunTab:<\/p>\n\n<pre><code>use GunTab\\Api\\GunTab\\Abstracts\\Invoice;\n\nfunction guntabAlterInvoice(Invoice $invoice, \\WC_Order $order) {\n    \/\/ Your code\n    return $invoice;\n}\n\nadd_filter('guntab_alter_invoice', 'guntabAlterInvoice');\n<\/code><\/pre>\n\n<p>Alter the order status when the status must change due to a webhook request from GunTab:<\/p>\n\n<pre><code>function getNewOrderStatus(string $suggestedStatus, \\stdClass $jsonDataFromGunTab) {\n    \/\/ Your code\n    return 'wc-complete'; \/\/ Choose a different WooCommerce order status based on $jsonDataFromGunTab-&gt;status\n}\n\nadd_filter('guntab_get_new_order_status', 'getNewOrderStatus', 10, 2);&lt;h3&gt;Actions&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>Called when GunTab sends a request to your webhook endpoint. It runs after the plugin processes the request:<\/p>\n\n<pre><code>function your_function_name(\\WC_Order $order, \\stdClass $postedJsonData) {\n    \/\/ Your code\n}\n\nadd_action('guntab_on_webhook', 'your_function_name', 10, 2);\n<\/code><\/pre>\n\n<!--section=faq-->\n<p>If you have any questions, please visit the <a href=\"https:\/\/www.guntab.com\/help\">GunTab Help Center<\/a>.<\/p>\n\n<!--section=changelog-->\n<ul>\n<li>0.3.3<\/li>\n<\/ul>\n\n<p>Enhancement: Fix incorrect warning that \"This plugin hasn\u2019t been tested with the latest 3 major releases of WordPress\".<\/p>\n\n<ul>\n<li>0.3.2<\/li>\n<\/ul>\n\n<p>Enhancement: Update \"tested up to\" version to WordPress 6.7.<\/p>\n\n<ul>\n<li>0.3.1<\/li>\n<\/ul>\n\n<p>Enhancement: Declare support for High-Performance Order Storage (HPOS).<\/p>\n\n<ul>\n<li>0.3.0<\/li>\n<\/ul>\n\n<p>Enhancement: Add support for marketplace websites.\nEnhancement: Improve error message.<\/p>\n\n<ul>\n<li>0.2.1<\/li>\n<\/ul>\n\n<p>Bugfix: Fixed invalid path.<\/p>\n\n<ul>\n<li>0.2.0<\/li>\n<\/ul>\n\n<p>Enhancement: Add support for \"block\" checkout, so it is no longer necessary to \"Switch to classic checkout\" in WooCommerce 8.3+.<\/p>\n\n<ul>\n<li>0.1.6<\/li>\n<\/ul>\n\n<p>Enhancement: Error logging and error messages are now clearer and more robust, including new error logging for failed requests to the GunTab API.<\/p>\n\n<ul>\n<li>0.1.5<\/li>\n<\/ul>\n\n<p>Bugfix: Fatal error due to missing file when running on PHP8.  Example: \"Failed opening required '...wp-content\/plugins\/guntab-payment-gateway\/vendor\/symfony\/polyfill-mbstring\/bootstrap80.php'\"\nBugfix: \"Add to Cart\" button can lead to a 404 error page.\nBugfix: \"Deprecated: Non-static method GunTab\\GunTabPaymentGateway::quick_checkout_redirect() should not be called statically\"<\/p>\n\n<ul>\n<li>0.1.4<\/li>\n<\/ul>\n\n<p>Bugfix: Remove more type hints in an attempt to be unofficially compatible with PHP 5.<\/p>\n\n<ul>\n<li>0.1.3<\/li>\n<\/ul>\n\n<p>Bugfix: Although this plugin officially requires PHP 7 or higher, we have removed type hints in an attempt to be unofficially compatible with PHP 5.<\/p>\n\n<ul>\n<li>0.1.2<\/li>\n<\/ul>\n\n<p>Bugfix: Two buttons appearing for quick checkout.\nBugfix: Settings content going outside container.\nEliminate warning about get_product_from_item().<\/p>\n\n<ul>\n<li>0.1.1<\/li>\n<\/ul>\n\n<p>Bugfix: \"An active PHP session was detected\".\nBugfix: Nullable property types.\nReplace third-party framework dependency with self-managed version.<\/p>\n\n<ul>\n<li>0.1.0<\/li>\n<\/ul>\n\n<p>Initial beta version.<\/p>","raw_excerpt":"GunTab is &quot;the PayPal for guns&quot;. This free plugin adds a &quot;Pay with GunTab&quot; button to your WooCommerce checkout page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/138690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=138690"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/guntab"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=138690"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=138690"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=138690"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=138690"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=138690"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=138690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}