這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

GetPay Payment Integration

外掛說明

A secure payment gateway plugin for WooCommerce using GetPay.

GetPay WooCommerce Integration

A secure payment gateway plugin that integrates the GetPay payment system with WooCommerce for WordPress e-commerce stores.

Table of Contents

Prerequisites

Before installing the GetPay plugin, ensure you have:

  • ✅ WordPress site with admin access
  • ✅ WooCommerce plugin installed and activated
  • ✅ GetPay merchant account (credentials from your bank)
  • ✅ SSL certificate installed (recommended for security)

Configuration

Step 1: Access Payment Settings

  • Navigate to WooCommerce > Settings > Payments
  • Locate GetPay Gateway in the list
  • Click Manage or Set up

Step 2: Configure Required Fields

Field
Description
Example

Enable
Check to activate GetPay
☑️

Title
Customer-facing payment title
GetPay

PAP Info
Payment Application Provider info (from bank)
eyJpbn...

OPR Key
Operational key
4fa4c6b9-...

INS Key
Institution key (if any)
(blank)

Website Domain
Your site domain (with HTTPS)
https://your-site.com

Bundle JS URL
GetPay JS bundle
https://minio.finpos.global/.../bundle.min.js

Success URL
Redirect on successful payment
https://your-site.com/success

Fail URL
Redirect on failed payment
https://your-site.com/fail

Base URL
GetPay API base endpoint
https://uat-bank-getpay.nchl.com.np/...

  • Click Save Changes

Page Setup

Step 1: Create Pages

Create the following pages via Pages > Add New:

🛒 Cart Page

  • Title: Cart
  • Content: [woocommerce_cart]

💳 Checkout Page

  • Title: Checkout
  • Content: [woocommerce_checkout]

💰 Payment Page

  • Title: Payment
  • Content: Add the following HTML tag to embed the payment interface: <div id="checkout"></div>
  • Purpose: This page serves as the payment processing screen where the GetPay JS bundle will render the secure payment interface.

✅ Success Page

  • Title: Payment Success
  • Content: Add the following shortcode in the content area of the page:
    [getpay_check_success_page]
  • URL: The page URL must exactly match the Success URL you have configured in the GetPay plugin settings (e.g., https://your-site.com/success).
  • Custom Content: You may add additional messages, images, or layout elements after the shortcode if needed. However, do not remove or modify the shortcode, as it is essential for validating and displaying the payment confirmation.

❌ Failure Page

  • Title: Payment Failed
  • Content: You can display a custom message such as: [getpay_check_fail_page]
  • URL: The page URL must exactly match the Fail URL you have configured in the GetPay plugin settings (e.g., https://your-site.com/fail).
  • Custom Content: You may customize the message or design of this page to fit your site’s branding, but make sure the URL is correct to ensure users are properly redirected after a failed transaction.

Step 2: Assign Pages in WooCommerce

  • Go to WooCommerce > Settings > Advanced
  • Set:
    • Cart page: Cart
    • Checkout page: Checkout
  • Click Save Changes

Testing

Test Mode

  • Use sandbox credentials from your bank
  • Test with provided test card numbers
  • Verify flows: ✅ success, ❌ failure, ✋ cancellation

Live Mode

  • Replace test keys with production credentials
  • Update Base URL to production endpoint
  • Run small-amount test transactions before going live

Troubleshooting

Plugin Not Appearing

  • Ensure WooCommerce is activated
  • Check if GetPay plugin is active
  • Verify GetPay Gateway is enabled under payment methods

Payment Failures

  • Double-check PAP/OPR/INS credentials
  • Ensure site has valid SSL
  • Check if JS bundle and API endpoints are accessible

Redirect Issues

  • Make sure success/fail URLs are correct
  • Pages should be published and match settings

Debug Logs

  • Go to WooCommerce > Status > Logs
  • Check logs prefixed with getpay
  • Look for API errors or response messages

Support

🛠️ Plugin Issues

  • Contact your plugin development team

🏦 Payment Issues

  • Contact your bank’s GetPay support team

📖 WooCommerce

Security Notes

  • 🔒 Always use HTTPS in production
  • 🔁 Keep plugin updated
  • 💾 Regularly back up your site
  • 🔐 Never share your credentials publicly
  • 🧪 Fully test before enabling live payments

安裝方式

Step 1: Install WooCommerce

  1. Go to Plugins > Add New
  2. Search for “WooCommerce”
  3. Click Install Now and then Activate
  4. Complete the WooCommerce setup wizard

Step 2: Install GetPay Plugin

Option A: From Plugin Directory

  1. Go to Plugins > Add New
  2. Search for “GetPay”
  3. Click Install Now and then Activate

Option B: Manual Upload

  1. Download the .zip file of GetPay plugin
  2. Go to Plugins > Add New > Upload Plugin
  3. Select the .zip file and click Install Now
  4. Click Activate

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈GetPay Payment Integration〉的開發相關工作。

參與者

將〈GetPay Payment Integration〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Version 1.0.0

  • Initial release
  • WooCommerce + GetPay basic integration
  • Supports:
    • Success & failure redirects
    • Full credential configuration
    • Embedded JS bundle support

© 2025 GetPay Integration Team
Securely built for WooCommerce by Citytech Global