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

Update payment render #290

Merged
merged 22 commits into from
Aug 29, 2022
Merged

Update payment render #290

merged 22 commits into from
Aug 29, 2022

Conversation

new4762
Copy link
Contributor

@new4762 new4762 commented Aug 1, 2022

1. Objective

Currently our plugin is showing payment methods 
that omise account of merchants is can’t support it
So this pr is focused on improving customer & merchants experience by display only payment that they can make a pay
and help ours developer to support new payment method without need to waiting to deploy on production

This section will be used in the release notes.

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

2. Description of change

  • add backends object data on omise plugin setting
  • update Omise_Payment to support source_type
  • add render condition on admin page to display only support payment from api
  • using is_available to filter list to render payment methods on checkout page
  • update tng backend provider to fetch when admin is save or update plugin

3. Quality assurance

All setting can make a change and payment method is display correctly
and try make null setting for test backward compatible for ours plugin

🔧 Environments:

  • WooCommerce: v6.2.2
  • WordPress: v5.9.1
  • PHP version: v7.3.33
  • Omise plugin version: Omise-WooCommerce 4.22.0

✏️ Details:

try switch omise account or update source_type on admin dashboard for testing
is showing payment methods correctly

4. Impact of the change

Display only payment methods that available from capabilities

image

image

image

image

5. Priority of change

Normal

6. Additional Notes

Any further information that you would like to add.

@new4762 new4762 self-assigned this Aug 2, 2022
@new4762 new4762 marked this pull request as ready for review August 2, 2022 02:50
@new4762 new4762 requested a review from aashishgurung as a code owner August 2, 2022 02:50
@new4762 new4762 changed the base branch from add-rms to master August 2, 2022 09:03
@new4762 new4762 changed the base branch from master to fix-v4.23 August 8, 2022 04:31
Copy link
Contributor

@aashishgurung aashishgurung left a comment

Choose a reason for hiding this comment

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

LGTM

@FhanOmise FhanOmise deleted the branch master August 18, 2022 04:20
@FhanOmise FhanOmise closed this Aug 18, 2022
@new4762 new4762 reopened this Aug 18, 2022
@new4762 new4762 changed the base branch from fix-v4.23 to master August 18, 2022 04:41
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
11.3% 11.3% Duplication

@new4762 new4762 merged commit c1c925b into master Aug 29, 2022
@new4762 new4762 deleted the update-payment-render branch August 29, 2022 03:13
aashishgurung pushed a commit that referenced this pull request Aug 29, 2022
aashishgurung pushed a commit that referenced this pull request Aug 29, 2022
FhanOmise added a commit that referenced this pull request Aug 29, 2022
aashishgurung added a commit that referenced this pull request Aug 30, 2022
* Revert "Update payment render (#290)"

This reverts commit c1c925b.

* Revert "[ENGA3-290]: Issue of displaying an error as an option of Online bank… (#296)"

This reverts commit 665d76e.

* Revert "fix release date"

This reverts commit 3955645.

* Revert "Update changelog"

This reverts commit 66a4b73.

* Revert "Release 4.23.2"

This reverts commit f97965d.

* Revert "Handle console error when fpx bank list is empty"

This reverts commit 097938a.

* Revert "remove release"

This reverts commit df62a9f.

* Revert "Update capabilities calling"

This reverts commit 1178a7b.

* Revert "update v4.23.2"

This reverts commit ee6b493.

* Revert "Handle retrive capabilities error"

This reverts commit c3585af.

* Revert "Revert "Revert "Merge pull request #287 from omise/add-rms"""

This reverts commit ec0e648.

* Revert "Revert "Revert "Feature/plugins 269 (#288)"""

This reverts commit 02791e2.

* Revert "Revert "Revert "Feature/plugins 245 (#285)"""

This reverts commit 397a95c.

* Revert "Revert "Revert "[PLUGINS-257: Sec-fetch header is checked to determine whether the request is a user originated operation or not. (#284)"""

This reverts commit 654ffde.
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.

5 participants