-
Notifications
You must be signed in to change notification settings - Fork 210
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
[ECE] Payment processing with taxes #3472
Comments
Thanks @annemirasol for checking this.
![]()
|
Some findings: Similar to WooPayments, we are unable to display the correct tax amount in the express checkout modal if the product is virtual. This is regardless of whether tax is based on shipping address or based on billing address. WooPayments has elected to disable express checkout for this scenario -- we likely will need to do the same but I will be doing my own timeboxed investigation if there are other potential solutions. |
The following tax scenarios were tested:
*For each scenario, "Default customer location" is set to "No location by default", in order to test for scenarios where we have incomplete information. |
Hi @annemirasol 👋
Are we already hiding the ECE button in this case or do we need a fix for this?
As you mentioned in the previous point, we do not have access to the billing address attached to the ECE card used until after the user clicks "Pay". Isn't the tax (and final payment) supposed to be calculated wrong for this scenario as well then? 🤔 |
Correct, as long as the tax is based on the billing address, there is a chance the tax amount we display in the modal will be incorrect 😔.
Currently, we are only hiding it if the cart is not shippable i.e. there is no billing and shipping address available to the express checkout modal. The tax amount displayed will be incorrect if:
When the cart is shippable, the tax amount displayed will be incorrect if:
I do not know whether this latter scenario is equally likely as the former. What do you think? Do you think we should just turn off express checkout whenever taxes are based on billing address? We can easily do that, but I am worried that this kind of tax setup is very common, which would mean a lot of merchants will basically lose the option to have express checkout for their stores. Some other options I am mulling over:
LMK what you think! |
Thanks @annemirasol for the details.
I have created an issue for this #3521. As the final charged amount is correct, allowing the user to pay with the ECE button should be fine. |
Closing this issue as
|
When there are no shipping locations defined, This is expected, and maybe even desired, as Google Pay will not let you select a shipping address that is not defined in the store's shipping locations. For example, if a Google Pay account has two shipping addresses connected to it, e.g. United States and United Kingdom, and only United States is defined as a shipping location, the customer cannot select the United Kingdom address inside the Google Pay modal. |
Process payment with ECE Google Pay / Apple Pay button when tax is applied to the order.
Acceptance criteria
The text was updated successfully, but these errors were encountered: