{"id":10530,"date":"2026-05-15T23:30:24","date_gmt":"2026-05-15T15:30:24","guid":{"rendered":"https:\/\/aeosub.com\/nyva-pay-for-woocommerce\/"},"modified":"2026-05-15T23:30:24","modified_gmt":"2026-05-15T15:30:24","slug":"nyva-pay-for-woocommerce","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/nyva-pay-for-woocommerce\/","title":{"rendered":"NYVA Pay for WooCommerce"},"content":{"rendered":"<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 15px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/plugins\/geopattern-icon\/nyva-pay-for-woocommerce.svg\" style=\"width: 40px;height: 40px;border-radius: 6px;margin-right: 12px;vertical-align: middle\"> Developer<\/th>\n<td style=\"padding: 15px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/nyvapay\/\" target=\"_blank\" rel=\"noopener\">nyvapay<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.10<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">5.0 \/ 6.9.4<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-05-15 3:05pm GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/nyva-pay-for-woocommerce\/\" target=\"_blank\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\" rel=\"noopener\">View Details \u2192<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">Accept payments with NYVA Pay. Customers are redirected to the NYVA hosted checkout and orders are completed via webhook.<\/div>\n<p>This plugin adds &#8220;Pay with NYVA&#8221; as a WooCommerce payment method. When the customer chooses NYVA Pay and places the order:<\/p>\n<ol>\n<li>The plugin creates a payment session via the NyvaPay API (POST \/api\/merchant\/payment-links).<\/li>\n<li>The customer is redirected to the NyvaPay hosted checkout page.<\/li>\n<li>After payment, NyvaPay sends a webhook to your site; the plugin marks the order as paid and WooCommerce sends the order confirmation email.<\/li>\n<\/ol>\n<p><strong>Requirements<\/strong><\/p>\n<ul>\n<li>WordPress 5.0 or later<\/li>\n<li>WooCommerce 4.0 or later (tested with WooCommerce 8.x)<\/li>\n<li>PHP 7.4 or later<\/li>\n<li>A NyvaPay merchant account with <strong>Pro subscription<\/strong> and an API key from the NyvaPay dashboard<\/li>\n<\/ul>\n<p><strong>API used<\/strong><\/p>\n<ul>\n<li><strong>Create payment session:<\/strong> <code>POST {base_url}\/api\/merchant\/payment-links<\/code><\/li>\n<li><strong>Headers:<\/strong> <code>X-Merchant-Email<\/code>, <code>X-API-Key<\/code>, <code>Content-Type: application\/json<\/code><\/li>\n<li><strong>Body:<\/strong> amount, currency, product_name, order (WooCommerce order ID), webhook_url, success_redirect_url, customer_email, customer_name, optional metadata<\/li>\n<li><strong>Response:<\/strong> pay_url (redirect URL), payment_request_id<\/li>\n<\/ul>\n<p><strong>Webhook<\/strong><\/p>\n<p>When payment completes, NyvaPay POSTs to your webhook URL with a JSON body:<\/p>\n<ul>\n<li><strong>Event:<\/strong> <code>payment.succeeded<\/code><\/li>\n<li><strong>Fields:<\/strong> order (your WooCommerce order ID), amount, currency, payment_request_id, transaction_id, status (&#8220;paid&#8221;), product_name, customer_email, customer_name, metadata<\/li>\n<\/ul>\n<p>The plugin registers the webhook at: <code>https:\/\/yoursite.com\/wc-api\/nyva_callback\/<\/code> (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.<\/p>","protected":false},"excerpt":{"rendered":"<p>Accept payments with NYVA Pay. Customers are redirected to the NYVA hosted checkout and orders are completed via webhook.<\/p>","protected":false},"author":1,"featured_media":9317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[812,813,569,555],"class_list":["post-10530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-nyva-pay","tag-payment-gateway","tag-woocommerce","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=10530"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/9317"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=10530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=10530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=10530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}