Reload payment methods when changing checkout details
-
I’m developing a payment gateway for a specific country, so one of the settings allows the shop owner to limit showing this payment option on the checkout based on the user billing or shipping address country.
If the user changes address during the checkout, or doesn’t have yet an address set, and that option is set, the payment gateway visibility will not toggle.
I’m using the
fluent_cart/checkout_active_payment_methodsfilter to remove the gateway conditionally based on the country, but also based on the order total amount.So, actually, the payment methods should be reloaded (via the REST API?) for any change that happens on the checkout, not only an address change, but also for shipping options, coupons, and even when a payment method is chosen, and the
fluent_cart/checkout_active_payment_methodsfilter should be applied during the reload.
You must be logged in to reply to this topic.