Skip to content

[ENGA3-421]: Billing address details are removed from the POST data when creating card token.#304

Merged
aashishgurung merged 3 commits intomasterfrom
feature/ENGA3-421
Sep 6, 2022
Merged

[ENGA3-421]: Billing address details are removed from the POST data when creating card token.#304
aashishgurung merged 3 commits intomasterfrom
feature/ENGA3-421

Conversation

@aashishgurung
Copy link
Copy Markdown
Contributor

1. Objective

Billing address details were added to create a card token in omise-payment-form-handler.js because Visa backend requires billing address (Reference: #269). It has been removed because this caused issue on some merchants because some sell digital products so they won't have billing address. Some merchants customize the checkout page so the billing address may not have the same IDs we were expecting. This caused issue of undefiend error.

Even though we fix the undefined error to meaningful error, it will still cause issue as they won't have the billing address or a customize billing address fields.

Jira Ticket: #421

2. Description of change

Billing address details have been removed from the POST data when creating card token in omise-payment-form-handler.js.

3. Quality assurance

Checkout without filling billing address. You should see default Woocommerce error instead of undefined error.

🔧 Environments:

  • WooCommerce: v6.8.0
  • WordPress: v6.0.2
  • PHP version: 8.1
  • Omise plugin version: Omise-WooCommerce 4.23.3

Copy link
Copy Markdown
Contributor

@new4762 new4762 left a comment

Choose a reason for hiding this comment

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

😿 hope we find alternative solution soon

Comment thread assets/javascripts/omise-payment-form-handler.js Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 5, 2022

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 0 Code Smells

No Coverage information No Coverage information
33.3% 33.3% Duplication

@aashishgurung aashishgurung merged commit 9b3d9b9 into master Sep 6, 2022
@aashishgurung aashishgurung deleted the feature/ENGA3-421 branch September 20, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants