Title: Problems with Paypal
Last modified: April 16, 2021

---

# Problems with Paypal

 *  Resolved [espinozar1994](https://wordpress.org/support/users/espinozar1994/)
 * (@espinozar1994)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problems-with-paypal-2/)
 * The default woocommerce currency I have for products is USD. I configured the
   plugin for Colombia to show and work with COP, and in the rest of the world with
   USD.
 * I have two payment methods, Colombian payment method (Payu) and Paypal, everything
   works perfect but when I try to pay with Paypal in Colombia it sends the currency
   as COP and I need it to be sent as USD at that moment, that is, Paypal omit your
   plugin settings.
 * I tried doing this:
 *     ```
       function wpcc_change_currency($paypal_args)
       {
       if ($paypal_args['currency_code'] == 'COP') {
           $convert_rate = 3666; //set the converting rate
           $paypal_args['currency_code'] = 'USD'; //change Pen to USD
           $i = 1;
   
           while (isset($paypal_args['amount_' . $i])) {
               $paypal_args['amount_' . $i] = round($paypal_args['amount_' . $i] / $convert_rate, 2);
               ++$i;
           }
   
           if (isset($paypal_args['tax_cart'])) {
               $paypal_args['tax_cart'] = round($paypal_args['tax_cart'] / $convert_rate, 2);
           }
   
           if (isset($paypal_args['shipping_1'])) {
               $paypal_args['shipping_1'] = round($paypal_args['shipping_1'] / $convert_rate, 2);
           }
   
           if ($paypal_args['discount_amount_cart'] > 0) {
               $paypal_args['discount_amount_cart'] = round($paypal_args['discount_amount_cart'] / $convert_rate, 2);
           }
       }
       return $paypal_args;
       }
       ```
   
 * But it doesn’t work, that code doesn’t really change anything, is there a way
   to configure the plugin so that it doesn’t affect paypal? I need PayPal to always
   work with USD and default prices.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-paypal-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problems-with-paypal-2/#post-14341433)
 * Hi,
 * Price Based on Country does not include that feature. It requires a payment gateway
   that supports the currency:
 * [https://www.pricebasedcountry.com/docs/faqs/will-it-compatible-with-my-payment-gateway/](https://www.pricebasedcountry.com/docs/faqs/will-it-compatible-with-my-payment-gateway/)

Viewing 1 replies (of 1 total)

The topic ‘Problems with Paypal’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-price-based-on-countries/assets/icon-
   256x256.png?rev=1976858)
 * [Price Based on Country for WooCommerce](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/problems-with-paypal-2/#post-14341433)
 * Status: resolved