Skip to content

Migrating all related code to support Omise API version v2017-11-02.#102

Merged
guzzilar merged 2 commits intomasterfrom
using-omise-latest-apiversion
Feb 22, 2019
Merged

Migrating all related code to support Omise API version v2017-11-02.#102
guzzilar merged 2 commits intomasterfrom
using-omise-latest-apiversion

Conversation

@guzzilar
Copy link
Copy Markdown
Contributor

@guzzilar guzzilar commented Feb 20, 2019

1. Objective

The upcoming implementation for the Installment payment is required for the latest Omise API version, 2017-11-02 which the current core-code of the plugin doesn't support.

This pull request is aiming to migrate all related code to support the Omise API version 2017-11-02.

2. Description of change

All code should function the same except now we are switching Omise API to the latest version, 2017-11-02, which support Source API.

3. Quality assurance

🔧 Environments:

  • WordPress: v5.0.3.
  • WooCommerce: v3.5.4.
  • PHP: v5.6.30.

✏️ Details:

  1. Test create a new charge using Alipay payment method.
    Expected result:
    To make sure that the plugin would still be able to create a new Alipay charge after migrate to the new API version.

screen shot 2562-02-21 at 17 09 58

  1. Test create a new charge using Internet Banking payment method.
    Expected result:
    To make sure that the plugin would still be able to create a new Internet Banking charge after migrate to the new API version.

screen shot 2562-02-21 at 17 13 21

  1. Test manual capture an authorized charge via Omise Dashboard
    Expected result:
    To make sure that the charge.captured event handler can make a proper decision as some part of this code has bene migrated to support the latest Omise API version as well.

screen shot 2562-02-21 at 17 19 40

  1. Test create a new offsite charge to trigger charge.complete event & observe its behaviour
    Expected result:
    To make sure that the charge.complete event handler can make a proper decision as some part of this code has bene migrated to support the latest Omise API version as well.
    .
    The left, for successful case, and the right side is for failure case.

screen shot 2562-02-21 at 17 33 05

4. Impact of the change

No

5. Priority of change

Normal

6. Additional Notes

No

Note, this update is to prepare the code for Installment feature.
@guzzilar
Copy link
Copy Markdown
Contributor Author

added 3. Quality assurance

Comment thread includes/gateway/class-omise-payment-internetbanking.php
Comment thread includes/libraries/omise-plugin/helpers/charge.php Outdated
Copy link
Copy Markdown

@jonrandy jonrandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small things. No biggies

@guzzilar guzzilar force-pushed the using-omise-latest-apiversion branch from b1e3650 to 0c8d9d7 Compare February 22, 2019 04:03
@guzzilar
Copy link
Copy Markdown
Contributor Author

@jonrandy done 0c8d9d7

@jonrandy jonrandy self-requested a review February 22, 2019 04:15
@guzzilar guzzilar merged commit c0bc4f6 into master Feb 22, 2019
@guzzilar guzzilar deleted the using-omise-latest-apiversion branch February 22, 2019 05:10
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.

3 participants