[WordPress] 外掛分享: KueskiPay Gateway

首頁 › 外掛目錄 › KueskiPay Gateway
WordPress 外掛 KueskiPay Gateway 的封面圖片
200+
安裝啟用
★☆☆☆☆
1.5/5 分(2 則評價)
13 天前
最後更新
—
問題解決
WordPress 6.2+ PHP 7.4+ v3.2.0 上架:2024-10-13

內容簡介

KueskiPay Gateway 是一款 WooCommerce 付款閘道外掛,讓顧客在結帳時選擇以 Kueski Pay 分期付款(以雙週為單位),為商店提供彈性的先買後付支付方式。

【主要功能】
• 整合 Kueski Pay 分期付款閘道至 WooCommerce
• 商品頁與購物車頁自動顯示促銷小工具
• 支援沙盒與正式環境切換測試
• 自動將訂單資料傳送至 Kueski Pay 建立付款
• 結帳後導向 Kueski Pay 完成分期付款流程

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「KueskiPay Gateway」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Choose how many fortnights to pay with Kueski Pay
Requirements

WordPress 6.2 or newer.
WooCommerce 7.6 or newer.
PHP 7.4 or newer is recommended.

External services
This plugin connects to services operated by Kueski (Kueski, S.A.P.I. de C.V., SOFOM, E.N.R.) to show promotional widgets and to create, check and refund payments. The payment connections are required for the gateway to work. They are made only after you activate the plugin and enter your Kueski API key.
The payment connections go to the Kueski Pay WooCommerce middleware: https://woocommerce-middleware-go.production-pay.kueski.com/. When Sandbox mode is enabled they go to its test environment, https://woocommerce-middleware-go.staging-pay.kueski.codes/, instead.
Kueski privacy notices:

Customers and users: https://preguntas.frecuentes.kueski.com/hc/es/articles/12385430001563-Aviso-de-privacidad-integral-para-clientes-y-usuarios-de-Kueski-S-A-P-I-de-C-V-SOFOM-E-N-R
Merchants (commercial allies): https://preguntas.frecuentes.kueski.com/hc/es/articles/12385599806747-PRIVACY-NOTICE-FOR-THIRD-PARTIES-AND-COMMERCIAL-ALLIES-OF-KUESKI-SAPI-DE-CV-SOFOM-ENR

Kueski Pay widgets (cdn.kueskipay.com)

What it is: the script https://cdn.kueskipay.com/widgets.js, which shows the Kueski Pay installment widget on product and cart pages.
When: the script is loaded on storefront pages.
Data sent: the page that loads the script includes your Kueski API key, whether Sandbox mode is on, the integration name (woocommerce) and the plugin version in a hidden element that the script reads. The visitor’s browser also sends its usual request data (IP address, User-Agent) to the CDN, and the plugin version as the script’s ver parameter.
Code: public/class-wc-kueski-gateway-public.php (kueski_widget_enqueue_scripts(), add_widget_init()).

Kueski Pay middleware, validate keys: GET api/v1/merchant/validate-keys

What it does: checks that your Kueski API key is valid and returns your merchant limits.
When: when WooCommerce checks whether Kueski Pay can be offered to a customer (for example at checkout), when a customer places an order paying with Kueski Pay, and when someone calls the plugin’s monitoring endpoint (/wp-json/kueski/v1/monitoring) on your store. The answer is kept for 12 hours, or 10 minutes after a failed check.
Data sent: your Kueski API key (in the api_key query parameter), a generated request identifier (kp-identifier header) and the User-Agent of the browser that triggered the request.
Code: Kueski_Gateway_Api::wp_validate_keys() in includes/class-wc-kueski-gateway-api.php, called through get_merchant_data() from includes/class-wc-kueski-gateway.php and includes/class-wc-kueski-gateway-rest-api.php.

Kueski Pay middleware, create payment: POST api/v1/order/create

What it does: creates a Kueski Pay payment for the order and returns the Kueski page where the customer completes it.
When: a customer places an order paying with Kueski Pay. The customer is then redirected to Kueski.
Data sent:

Headers: your Kueski API key (Authorization), the customer’s browser User-Agent, a generated request identifier (kp-identifier) and the integration name (kp-name), plugin version (kp-version), web or mobile source (kp-source), trigger (kp-trigger), and WordPress, WooCommerce and PHP versions (kp-wp-version, kp-wc-version, kp-php-version).
Body: the order ID and description, order total, currency and its breakdown (subtotal, shipping, tax, handling fee, discount), each item (name, description, SKU, quantity, price, currency), the shipping address (first and last name, street, interior, city, state, postcode, country), the billing phone number and email, and the store URLs Kueski returns the customer to (they carry the encrypted order ID and a nonce).

Code: Kueski_Gateway_Api::wp_create_order() in includes/class-wc-kueski-gateway-api.php, called from process_payment() in includes/class-wc-kueski-gateway.php; the body is built in includes/class-wc-kueski-gateway-order.php.

Kueski Pay middleware, check payments: POST api/v1/orders-sync

What it does: returns the status of one or more Kueski Pay payments.
When: every 5 minutes through WP-Cron for the latest three orders still pending payment, and when a customer returns to your store from Kueski.
Data sent: your Kueski API key (Authorization), the browser User-Agent, a generated request identifier (kp-identifier) and the Kueski payment IDs to check, separated by commas.
Code: Kueski_Gateway_Api::wp_orders_sync() in includes/class-wc-kueski-gateway-api.php, called from includes/class-wc-kueski-gateway-cron-manager.php and includes/class-wc-kueski-gateway-conciliator.php.

Kueski Pay middleware, refund a payment: POST api/v1/order/refund

What it does: refunds part or all of a Kueski Pay payment.
When: an admin refunds an order from the Kueski refund box of the order screen.
Data sent: the headers listed for create payment (your Kueski API key, User-Agent, kp-identifier, kp-name, kp-version, kp-source, kp-trigger, kp-wp-version, kp-wc-version, kp-php-version) and, in the body, the Kueski payment ID, the refund amount and the reason (merchant_refund).
Code: Kueski_Gateway_Api::kueskiRefundOrder() in includes/class-wc-kueski-gateway-api.php, called from includes/class-kueski-gateway-refund.php.

延伸相關外掛

文章
Filter
Mastodon