WooCommerce How to Display Stripe Based on PostCode
In WordPress 6.9 version and WooCommerce version 10.3.6, I want to display the Stripe based on the shipping zone. Shipping zone 1 consists of Post code 3000 Shipping zone 2 consists of Post code 4000. ex: Post Code 3000 should display Stripe. Post Code 4000 or any other postcodes should hide Stripe. Currently, I am using woocommerce_available_payment_gateways webhook to display. add_filter('woocommerce_available_payment_gateways', 'payment_gateways_based_on_chosen_shipping_method'); function payment_gateways_based_on_chosen_shipping_method($available_gateways) { $shouldReturnAll = true; if( is
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.