Apple Pay Google Pay buttons not shown on products that don't require shipping and prices already include tax. #9921
Labels
component: payment request button
Apple Pay, Google Pay, etc
focus: checkout payments
priority: medium
The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability
type: bug
The issue is a confirmed bug.
Milestone
Describe the bug
In #9080 these buttons were disabled due to the possibility of not having billing information available when the payment sheet opens and, therefore, we could potentially be showing an incorrect amount if tax is calculated based on billing address. However, an edge case came up in a ticket where the user did have the tax set to be calculated on the billing address for non-shippable products but their prices were already entered inclusive of tax. Meaning that no tax calculations should be happening on checkout anyway. I think it should be safe to show the EPMs in this instance. The relevant logic is here.
To Reproduce
/wp-admin/admin.php?page=wc-settings&tab=tax
and select the radio button to "Yes, I will enter prices inclusive of tax."Actual behavior
Currently, with the described tax settings, the EPM buttons are not added
Screenshots
Expected behavior
With the tax settings as described above, accurate totals should be able to be sent to the payment sheet and EPM buttons should be enabled.
The text was updated successfully, but these errors were encountered: