跳到内容

NYVA Pay for WooCommerce

v1.0.11

nyvapay · 2026年5月15日 上架

Accept payments with NYVA Pay. Customers are redirected to the NYVA hosted checkout and orders are completed via webhook.

正在使用
10 以下
评分
暂无
累计下载
410
最近更新
2026年6月23日
需要 WordPress 5.0+已测试到 6.9.12PHP 7.4+

贡献者

This plugin adds “Pay with NYVA” as a WooCommerce payment method. When the customer chooses NYVA Pay and places the order:

  1. The plugin creates a payment session via the NyvaPay API (POST /api/merchant/payment-links).
  2. The customer is redirected to the NyvaPay hosted checkout page.
  3. After payment, NyvaPay sends a webhook to your site; the plugin marks the order as paid and WooCommerce sends the order confirmation email.

Requirements

  • WordPress 5.0 or later
  • WooCommerce 4.0 or later (tested with WooCommerce 8.x)
  • PHP 7.4 or later
  • A NyvaPay merchant account with Pro subscription and an API key from the NyvaPay dashboard

API used

  • Create payment session: POST {base_url}/api/merchant/payment-links
  • Headers: X-Merchant-Email, X-API-Key, Content-Type: application/json
  • Body: amount, currency, product_name, order (WooCommerce order ID), webhook_url, success_redirect_url, customer_email, customer_name, billing_address (from Woo billing fields), embed_source (woo), optional metadata
  • Response: pay_url (redirect URL), payment_request_id

Webhook

When payment completes, NyvaPay POSTs to your webhook URL with a JSON body:

  • Event: payment.succeeded
  • Fields: order (your WooCommerce order ID), amount, currency, payment_request_id, transaction_id, status (“paid”), product_name, customer_email, customer_name, metadata

The plugin registers the webhook at: https://yoursite.com/wc-api/nyva_callback/ (WooCommerce builds this from your site URL). You do not need to configure this URL in NyvaPay; the plugin sends it automatically when creating each payment.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums