Skip to content

Be able to manual sync a charge status from Omise to WooCommerce order.#47

Merged
guzzilar merged 2 commits intodevelopfrom
manual-sync-charge-status
Jul 11, 2017
Merged

Be able to manual sync a charge status from Omise to WooCommerce order.#47
guzzilar merged 2 commits intodevelopfrom
manual-sync-charge-status

Conversation

@guzzilar
Copy link
Copy Markdown
Contributor

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 pending status.

  • Merchant now be able to perform manual sync their order status after it has been created at Order Detail page.
    screen shot 2560-07-11 at 5 03 27 pm

  • Hide 'manual capture' action if payment method is the internet banking.

3. Quality assurance

🔧 Environments:

  • WordPress v4.8
  • WooCommerce v3.1.0
  • PHP v5.6.30

✏️ 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.

screen shot 2560-07-11 at 5 06 16 pm

3.2. Now make it as failed, then perform 'manual sync' again
Expectation: Your order status will be changed to failed with some note on an order note panel.

screen shot 2560-07-11 at 5 08 11 pm

3.3. Make another charge, now make it as success and perform 'manual sync'
Expectation: Your order status will be changed to processing with some note on an order note panel tell you that your charge has been captured (paid).

screen shot 2560-07-11 at 5 16 28 pm

4. Impact of the change

No

5. Priority of change

Normal

6. Additional Notes

No.

@guzzilar
Copy link
Copy Markdown
Contributor Author

👍

@guzzilar guzzilar merged commit f540694 into develop Jul 11, 2017
@guzzilar guzzilar deleted the manual-sync-charge-status branch July 11, 2017 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant