Be able to manual sync a charge status from Omise to WooCommerce order.#47
Merged
Be able to manual sync a charge status from Omise to WooCommerce order.#47
Conversation
…on on the order detail page.
Contributor
Author
|
👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Objective
Because we can't just only rely on Bank(s)'s response at the time that charge has been made (especially on Internet Banking payment method).
They won't always always return a charge result ('successful', 'failed') status right away after you make a request. Sometimes they take few mins ~ few hours to process a payment before returning a charge result.
Means, if this thing occurs, WooCommerce store has no way to know this result unless we integrate with Omise Webhook feature or 'Manual Sync'.
Related information:
Related issue(s): No
2. Description of change
Now WooCommerce order status will be set to 'on-hold' status for all Internet Banking charges that've been returned as
pendingstatus.Merchant now be able to perform

manual synctheir order status after it has been created at Order Detail page.Hide 'manual capture' action if payment method is the internet banking.
3. Quality assurance
🔧 Environments:
✏️ Details:
✅ 3.1. Test make charge with internet banking payment method. At the Omise Internet Banking test page, just leave it like that. Don't mark as success nor fail. Then perform 'manual sync' at the order detail page.
Expectation: You will get a note tells that currently payment is in progress.
✅ 3.2. Now make it as failed, then perform 'manual sync' again
Expectation: Your order status will be changed to
failedwith some note on an order note panel.✅ 3.3. Make another charge, now make it as success and perform 'manual sync'
Expectation: Your order status will be changed to
processingwith some note on an order note panel tell you that your charge has been captured (paid).4. Impact of the change
No
5. Priority of change
Normal
6. Additional Notes
No.