PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 4, 2022

[FIXED] How can I solve "Gateway disabled: PayPal Standard does not support your store currency." in WooCommerce running on WordPress?

 July 04, 2022     paypal, php, woocommerce, wordpress     No comments   

Issue

I'm working on a website using WordPress and Woocommerce Plugin, I would like to use PayPal as a Payment gateway but I get the message "Gateway disabled: PayPal Standard does not support your store currency" every time I try to set up PayPal. I am based in Kenya and the currency is (Kenyan shilling) which is not supported by PayPal. I have read many articles explaining how to solve this by adding some code on functions.php of my theme (even what is explained here).

I don't want to use a child theme, is there a place I can directly modify the code in WooCommerce plugin? Using the below code on my functions.php file did not work.

add_filter( ‘woocommerce_paypal_supported_currencies’, ‘add_paypal_valid_currency’ );
function add_paypal_valid_currency( $currencies ) {
array_push ( $currencies , ‘Ksh’ ); /* YOUR CURRENCY */
return $currencies;
}

enter image description here


Solution

In order to use PayPal, transactions must be denominated in a supported PayPal currency, such as USD or EUR.

So, change your store store to use such a currency. Modifying the code to forcibly enable PayPal Standard even though you're using an unsupported currency will just result in checkout errors, as PayPal will reject transactions denominated in KSH.

When using a supported currency, if the payer has a funding source in some other local currency (such as KSH), the conversion will be shown to them in the PayPal checkout.



Answered By - Preston PHX
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing