Country eligibility check for BNPL messaging element on product/cart pages #10179
Labels
priority: medium
The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability
type: bug
The issue is a confirmed bug.
Describe the bug
The BNPL messaging element is rendered in a few pages:
As it currently stands, the implementation for checkout pages is different than the ones on cart & product pages.
On the checkout pages, the eligibility check is done on the selected customer's billing country (or the store's country), and whether that country is allowed for the BNPL payment methods.
On the product & cart pages, this check doesn't seem to be implemented.
So, if the customer's billing country is not supported by any of the enabled BNPL methods (e.g.: billing country
CN
), the BNPL messaging element will still attempt to render, and then fail.Sometimes, this failure is just present in the browser's console.
Other times, this failure can be visible in the store's front-end (if you're admin and have error logging enabled).
We should implement the same checks in the product & cart implementations for BNPL messaging eligibility.
To Reproduce
CN
as the billing countryActual behavior
The BNPL messaging attempts to render, but fails.
Screenshots
Expected behavior
The BNPL messaging element shouldn't render if the country is not supported.
Additional context
p1736962049965999-slack-CU6SYV31A
The text was updated successfully, but these errors were encountered: