As Omise has been providing a support for PayNow payment method.
This pull request is to integrate the new PayNow payment to WooCommerce plugin.
Related information:
Related issue(s): T19391 (internal ticket)
2. Description of change
IMPORTANT: The changes only appear when using Omise Singapore account.
Integrating Omise PayNow payment method with WooCommerce.
At Omise Settings page, you will see a new payment method, "PayNow".
Once enabled the payment, the PayNow payment method will be appeared at WooCommerce Checkout page.
Displaying PayNow QR code at the order-confirmation page, once placing an order with PayNow payment method.
With Omise Webhook feature, once the charge has been paid, an order status will be updated to processing.
3. Quality assurance
🔧 Environments:
WooCommerce: -
WordPress: v5.3.2
PHP version: -
✏️ Details:
IMPORTANT: To test this feature, requires Omise Singapore account, and also the Webhook feature should be set on that particular account.
1. Making sure that the payment method's setting is available only on Omise Singapore account.
Using Omise Singapore account
Using Omise Japan account
2. Making sure that once enabled the PayNow payment method, the method will be displayed at WooCommerce Checkout page properly.
3. Making sure that once the order has been placed, a PayNow QR code will be displayed at the Order Received page, scannable.
The example using QR Reader application, on iPhone
An order has been placed with on-hold order status.
4. Making sure that Omise charge.complete event will be caught properly once the payment has been paid.
To simulate this situation, firstly Omise Webhook feature must be promptly set with a store's webhook endpoint.
Then to go to Omise Dashboard and mark a particular charge as successful.
Once done, the plugin will be able to catch a charge.complete event that has been triggered by Omise, then update an order status accordingly.
The following graphic is showing an overview of the payment flow.
4. Impact of the change
None
5. Priority of change
Normal
6. Additional Notes
This pull request is providing the least basic feature of PayNow payment method.
There are still numbers of thing that can be added to make its experience better however will be discussed and implemented later.
i.e.
An input from Irista suggested a counting down mechanism to automatically cancel the payment & order after a certain time if the payment hasn't been paid (10-15 minutes).
Adding more text or footnote to provide an instruction of how to use PayNow.
Including QR code to the WooCommerce Order Confirmation email.
1. Objective
As Omise has been providing a support for PayNow payment method. This pull request is to integrate the new PayNow payment to WooCommerce plugin.
Related information: Related issue(s): T19391 (internal ticket)
2. Description of change
Once enabled the payment, the PayNow payment method will be appeared at WooCommerce Checkout page.
Displaying PayNow QR code at the order-confirmation page, once placing an order with PayNow payment method.
With Omise Webhook feature, once the charge has been paid, an order status will be updated to
processing
.3. Quality assurance
🔧 Environments:
✏️ Details:
1. Making sure that the payment method's setting is available only on Omise Singapore account.
Using Omise Singapore account
Using Omise Japan account
2. Making sure that once enabled the PayNow payment method, the method will be displayed at WooCommerce Checkout page properly.
3. Making sure that once the order has been placed, a PayNow QR code will be displayed at the Order Received page, scannable.
The example using
QR Reader
application, on iPhoneAn order has been placed with
on-hold
order status.4. Making sure that Omise
charge.complete
event will be caught properly once the payment has been paid.To simulate this situation, firstly Omise Webhook feature must be promptly set with a store's webhook endpoint.
Then to go to Omise Dashboard and mark a particular charge as successful.
Once done, the plugin will be able to catch a
charge.complete
event that has been triggered by Omise, then update an order status accordingly.The following graphic is showing an overview of the payment flow.
4. Impact of the change
None
5. Priority of change
Normal
6. Additional Notes
This pull request is providing the least basic feature of PayNow payment method. There are still numbers of thing that can be added to make its experience better however will be discussed and implemented later.
i.e.
An input from Irista suggested a counting down mechanism to automatically cancel the payment & order after a certain time if the payment hasn't been paid (10-15 minutes).
Adding more text or footnote to provide an instruction of how to use PayNow.
Including QR code to the WooCommerce Order Confirmation email.
and so on.