The billing address condition should not be shown for payment gateways

Created on 3 February 2020, almost 5 years ago
Updated 23 May 2023, over 1 year ago

As soon as I add a restriction by billing address to a payment gateway that payment gateway will never appear, regardless of which country is chosen for the billing address. Example restriction I tried:

I don't understand how it's expected to update the billing address options unless the billing address was taken before the payment methods were shown (i.e. #3035976: Keep billing information as a separate pane instead of replacing it with the payment information pane β†’ ). Switching country does perform an AJAX request, but it doesn't update anything other than the address fields.

As soon as I remove the country restriction, the payment method appears.

πŸ› Bug report
Status

Active

Version

2.0

Component

Checkout

Created by

πŸ‡¬πŸ‡§United Kingdom Rob230

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    There are tangible business reasons why this is necessary.

    In Commerce 1 on Drupal 7 it is possible to limit one payment method so it can only be used in one country, and other payment methods so they can be used in all countries except for that one. We've done that for years on a non-profit org's site and it works reliably.

    What is the recommended way of implementing this business rule in Commerce 2, if not via this scenario?

Production build 0.71.5 2024