[WordPress] 外掛分享: GunTab Payment Gateway

WordPress 外掛 GunTab Payment Gateway 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「GunTab Payment Gateway」是 2021-04-20 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2025-03-17,距離現在已有 48 天。
  • 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

guntab |

外掛標籤

guns | escrow | firearms | payments | ammunition |

內容簡介

GunTab 是專為槍械和彈藥電子商務而建立的唯一交易平台。它能夠讓您在線安全地支付和收款。了解更多資訊,請至 GunTab.com。

在 WordPress 中啟用外掛

前往「外掛」>「新增外掛」。
搜尋「GunTab」。
選擇「立即安裝」。
安裝完成後,選擇「啟用」。

在 WooCommerce 中啟用外掛

前往「WooCommerce」>「設定」>「付款」。
選擇啟用「GunTab Payments」。
選擇「儲存變更」。
重新載入頁面後,選擇管理「GunTab Payments」。現在您可以設定偏好。

篩選器

在發送到 GunTab 之前修改發票資料:

use GunTab\Api\GunTab\Abstracts\Invoice;

function guntabAlterInvoice(Invoice $invoice, \WC_Order $order) {
// 您的程式碼
return $invoice;
}

add_filter('guntab_alter_invoice', 'guntabAlterInvoice');

當訂單狀態因 GunTab 的 Webhook 請求而改變時,修改訂單狀態:

function getNewOrderStatus(string $suggestedStatus, \stdClass $jsonDataFromGunTab) {
// 您的程式碼
return 'wc-complete'; // 根據 $jsonDataFromGunTab->status 選擇不同的 WooCommerce 訂單狀態
}

add_filter('guntab_get_new_order_status', 'getNewOrderStatus', 10, 2);

Actions

當 GunTab 向您的 Webhook 端點發送請求時,執行外掛已處理請求後:

function your_function_name(\WC_Order $order, \stdClass $postedJsonData) {
// 您的程式碼
}

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

原文外掛簡介

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 GunTab.com.
Activate the plugin in WordPress

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

Enable the plugin in WooCommerce

Go to WooCommerce > Settings > Payments.
Select to enable “GunTab Payments”.
Select “Save changes”.
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);

Actions

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);

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「GunTab Payment Gateway」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


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 | trunk |

延伸相關外掛(你可能也想知道)

  • Automatic FFL 》### 總結:, Automatic FFL for WooCommerce 是一個強大的擴展功能,旨在簡化向聯邦槍支執照(FFL)經銷商運送槍支的過程,當顧客訂購包含槍支產品的訂單時。...。
  • eCheckpoint 》總結:, eCheckpoint是您在槍支電子商務中確保合法合規性的全面解決方案。這個外掛與您的WooCommerce商店無縫集成,可根據聯邦、州和地方銷售法律來驗證客戶...。

文章
Filter
Apply Filters
Mastodon