Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EM-1690] Add Rabbit LINE Pay payment method #248

Merged
merged 2 commits into from
Mar 14, 2022
Merged

Conversation

kan98
Copy link
Contributor

@kan98 kan98 commented Mar 10, 2022

1. Objective

Explain in non-technical terms WHY this PR is required.
E.g.: What feature it adds, what problem it solves...

This section will be used in the release notes.

Add Rabbit LINE Pay payment method to the plugin for Thai merchants.

Related information:
Related issue(s): #< GitHub ticket number > (optional)

2. Description of change

A general description of WHAT changed in the codebase, but short of an English version of the diff. Assume that people reading this will also be looking at the output of git diff and guide them to the highlights.

Additionally add the reasoning for change details if they're complex or abstract.

  • Added a new payment method
  • Refactored the capture charge feature and uncoupled it from credit cards
  • Fixed bug where capture button is still showing after payment is already captured

3. Quality assurance

Specify where and how you tested this and what further testing it might need.

Should do full flow manual testing

🔧 Environments:

Specify the details of your test environments, including, for each, the platform version (on which the plugin was run), the Omise plugin version, and the versions of your system software such as PHP or Ruby.

i.e.

  • WooCommerce: v5.6.0
  • WordPress: v5.9.1
  • PHP version: 7.1.1
  • Omise plugin version: Omise-WooCommerce 4.3 (optional, in case of submitting a new issue)

✏️ Details:

Explain how to manually test this feature.
For example if changes were made in the UI or in the API, explain where and if any specific access is needed.

Test charge capture flow for manual capturing charges
Test RLP for both auto and manual capture flow

4. Impact of the change

List the steps that must be taken for this PR to work.
E.g.: rake yak:shave, Add "yak_key" to environment variables, ...

Be sure to include all systems that needs to be changed or which system is affected by the change
(Ex: Requires Elastic search to be installed and configured in secrets.yml).

Note: Please provide a screenshot if your changed impact to UI.

5. Priority of change

Normal, High or Immediate.

Normal

6. Additional Notes

Any further information that you would like to add.

Copy link

@tanawin-opn tanawin-opn left a comment

Choose a reason for hiding this comment

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

Testing Env: User-Agent: OmisePHP/2.13.0 PHP/7.4.27 OmiseAPI/2017-11-02 OmiseWooCommerce/4.16 WordPress/5.9.1 WooCommerce/6.2.1
UUID: 4292251366653289972

  • completed journey on paid with Rabbit LINE Pay [both success and failed cases]
  • fixed capture button
  • uncoupled process_capture function is worked both on Credit card and Rabbit LINE Pay

@som-m
Copy link
Contributor

som-m commented Mar 10, 2022

Should we also consider this scenario where a charge is captured via other means (dashboard, api, etc.), then manual sync is performed on WooCommerce to fetch the latest status of the charge. is_awaiting_capture is not updated. The capture button is still there even though the charge has already been captured.

@kan98
Copy link
Contributor Author

kan98 commented Mar 10, 2022

Should we also consider this scenario where a charge is captured via other means (dashboard, api, etc.), then manual sync is performed on WooCommerce to fetch the latest status of the charge. is_awaiting_capture is not updated. The capture button is still there even though the charge has already been captured.

yes great catch @som-m! It's fixed in this commit 0295e84

@kan98 kan98 merged commit d7995dc into master Mar 14, 2022
@kan98 kan98 deleted the add-rabbit-linepay branch March 14, 2022 04:41
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.

7 participants