Open metinucar opened 1 year ago
hello i have also the same problem how can i fix the problem? ^_^ Can possible share some information^__^
Hi @fullaineven,
@InpsydeNiklas shared a snippet with me in WordPress Forums and it worked for us after a few small tweaks. Hope it works for you.
Describe the Bug
We have PayPal and Stripe. We'd like to enable PayPal for US, CA and PR and Stripe for the RoW. We're using
woocommerce_available_payment_gateways
hook to enable / disable providers based on county. This works as expected and it toggles correct payment provider. But for PayPal the yellow pay button doesn't show up until the user reloads the checkout page.To Reproduce
Checkout
and now PayPal button is shownScreenshots
Correct behaviour: Billing country is not US, CA or PR. Stripe is enabled and PayPal is disabled.
Wrong behaviour: Billing country is US. Stripe is disabled and PayPal is enabled. But PayPal button doesn't show. Even after filling all the checkout fields, the button doesn't show.
After reloading the page, the PayPal button shows.
Environment
System status
``` ```