GunTab Payment Gateway

plugin banner

GunTab is the only safe way to get paid for firearms and ammo online. This free plugin adds a "Pay with GunTab" button to your WooCommerce c …

Author:GunTab (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:5.7.11
Plugin version:0.2.1
Added to WordPress repository:21-04-2021
Last updated:17-04-2024
Rating, %:0
Rated by:0
Plugin URI:https://www.guntab.com/documentation/woocomme...
Total downloads:3 955
Active installs:20+
plugin download
Click to start download

GunTab is the only transaction platform built for firearm and ammunition e-commerce. It enables you pay and get paid safely online. Learn more at GunTab.com.

Activate the plugin in WordPress

  1. Go to Plugins > Add New.
  2. Search for “GunTab”.
  3. Select “Install Now”.
  4. After installation is complete, select “Activate”.

Enable the plugin in WooCommerce

  1. Go to WooCommerce > Settings > Payments.
  2. Select to enable “GunTab Payments”.
  3. Select “Save changes”.
  4. After the page reloads, select to “Manage” GunTab Payments. Now you may set your preferences.

Filters

Alter the invoice data before it gets sent to GunTab:

use GunTab\Api\GunTab\Abstracts\Invoice;

function guntabAlterInvoice(Invoice $invoice, \WC_Order $order) {
    // Your code
    return $invoice;
}

add_filter('guntab_alter_invoice', 'guntabAlterInvoice');

Alter the order status when the status must change due to a webhook request from GunTab:

function getNewOrderStatus(string $suggestedStatus, \stdClass $jsonDataFromGunTab) {
    // Your code
    return 'wc-complete'; // Choose a different WooCommerce order status based on $jsonDataFromGunTab->status
}

add_filter('guntab_get_new_order_status', 'getNewOrderStatus', 10, 2);<h3>Actions</h3>

Called when GunTab sends a request to your webhook endpoint. It runs after the plugin processes the request:

function your_function_name(\WC_Order $order, \stdClass $postedJsonData) {
    // Your code
}

add_action('guntab_on_webhook', 'your_function_name', 10, 2);

Screenshots
FAQ
ChangeLog