Wemay Payment Gateway

By wemaypay

0+ active installationsVersion 1.4.1

WooCommerce payment gateway for the Wemay payment platform with embedded card fields and 3DS support.

Description

Wemay Payment Gateway connects a WooCommerce store to the Wemay Java payment platform. Buyers enter their card number, expiry date and CVC on the WooCommerce checkout page; the plugin creates a payment order on the configured Wemay gateway and Java selects the appropriate upstream payment channel.

Features:

  • Embedded credit card form on the WooCommerce checkout page.
  • Works with both classic and block-based WooCommerce checkout.
  • Supports 3DS redirects returned by the payment platform.
  • Sends billing and shipping address, browser/device information and cart details to the payment platform.
  • Handles asynchronous payment and refund notifications.
  • Shows the payment failure reason on the order page when provided by the gateway.
  • Configurable merchant number, application ID, application secret and 3DS mode.

External service:

This plugin connects to the payment gateway URL entered by the store administrator. Card details, order information and customer/billing details are sent to that gateway to create and process payments. The plugin also receives asynchronous payment and refund notifications from that gateway. No data is sent to Wemay or any other service unless the administrator configures a gateway URL.

Installation

  1. Upload wemay-payment-gateway.zip through Plugins > Add New > Upload Plugin, or copy the wemay-payment-gateway folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen.
  3. Go to WooCommerce > Settings > Payments and open Wemay Payment.
  4. Enter the gateway base URL, merchant number (mchNo), application ID (appId), application secret (appSecret) and wayCode (normally CARD).
  5. Enable the payment method and save changes.

The gateway base URL must point to the payment service root, for example https://pay.example.com. Do not include /api/v1/payment/createOrder.

FAQ

Does this plugin work with WooCommerce Blocks checkout?

Yes. The plugin registers a block checkout integration and renders the card fields in the block-based checkout.

Where do I configure merchant credentials?

In WooCommerce > Settings > Payments > Wemay Payment. Enter the merchant number, application ID, application secret and wayCode supplied by the payment platform administrator.

Why do I see “There are no payment methods available”?

Check that WooCommerce is active, the plugin is activated, and Wemay Payment is enabled and saved. Also check the WooCommerce and PHP error logs for a fatal error.

Why does the checkout show “invalid url router”?

The configured gateway address is wrong. Use only the payment service root URL without /api/v1 paths and without a trailing slash.

Why does signature verification fail?

The appSecret in WordPress must exactly match the application secret configured in the Java payment platform. Re-enter it and make sure there are no leading or trailing spaces.

Why is no card form shown?

This version always uses embedded card collection. Make sure the plugin version is current and the payment method is enabled. The card form is shown on both classic and block checkout pages.

Does the plugin support refunds?

The plugin handles refund notifications sent by the payment platform and updates the WooCommerce order status. Refunds must be initiated in the payment platform; this plugin does not provide a refund button in the WordPress admin.

Changelog

1.4.1

  • Sanitized payment notification payload values after signature verification before they are stored in order notes or metadata.
  • Sanitized gateway responses before writing them to the debug log.

1.4.0

  • Simplified to one merchant account per site.
  • Embedded card collection is now the only checkout mode.
  • Added a 3DS authentication switch.
  • Added the unified merchant order information payload.
  • Improved payment failure messages on checkout and order pages.
  • Added WooCommerce block checkout support.

1.3.0

  • Added block checkout integration.
  • Added multi-merchant support and product-level merchant mapping.
  • Added unified order information for channels.

1.0.0

  • Initial release.