[Skip to main content](#vessel-content)

#   auto change currency based on payment method

##

- **[kwezi](/forum/user/44729-kwezi "View kwezi's Profile")**
- [![kwezi's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar44729.jpg)](/forum/user/44729-kwezi "View kwezi's Profile") Topic Author
- [ Offline](/forum/user/44729-kwezi)

Less More

- Posts: 1
- Thank you received: 0
-
-

10 years 2 months ago [\#248341](#248341) by [kwezi](/forum/user/44729-kwezi "View kwezi's Profile")  *[auto change currency based on payment method](/forum/29-payment-methods/886130-auto-change-currency-based-on-payment-method#248341 "I want to use 2 currencies USD &amp; KES. I am using paypal ($) module &amp; Hikashop Pesapal module (KES). When I enable KES as main currency in Hikashop, the paypal module works ok i.e am able to purchase...")* was created by *[kwezi](/forum/user/44729-kwezi "View kwezi's Profile")*

I want to use 2 currencies USD &amp; KES. I am using paypal ($) module &amp; Hikashop Pesapal module (KES). When I enable KES as main currency in Hikashop, the paypal module works ok i.e am able to purchase on paypal using $. But Hikashop pesapal module picks the $ amount as opposed to KES amount.

If I reverse the above senario i.e set KES as main currecncy in HS, if i buy with paypal i get an error: This recipient does not accept payments denominated in KES. Please contact the seller and ask him to update his payment receiving preferences to accept this currency.

Problem is KES is not a currency available in paypal to accept payments.

is there a way the currency can be changed automatically based on the payment method selected?

Thanks for your help
K!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODYxMzAtYXV0by1jaGFuZ2UtY3VycmVuY3ktYmFzZWQtb24tcGF5bWVudC1tZXRob2Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 2 months ago [\#248346](#248346) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[auto change currency based on payment method](/forum/29-payment-methods/886130-auto-change-currency-based-on-payment-method#248346 "I want to use 2 currencies USD &amp; KES. I am using paypal ($) module &amp; Hikashop Pesapal module (KES). When I enable KES as main currency in Hikashop, the paypal module works ok i.e am able to purchase...")*

Hi,

It's the opposite actually. The payment methods display or not on the checkout based on the current currency (that you can change with the currency switcher module, or that you can force with the geolocation system or the "main currency" setting).
So the PayPal payment method won't display when the KES currency is the current one (that's a fact). So there must be something you're not telling us. Did you modify the code of the payment plugin ? Could you provide a link to the shop with the KES currency set as main currency ? So that we can see that ?

Regarding the Pesapal module, it's normal that it does that. If you look at the main file of the plugin:
[ github.com/patricmutwiri/Pesapal-for-hik...b/master/Pesapal.php](https://github.com/patricmutwiri/Pesapal-for-hikashop/blob/master/Pesapal.php)
You can see that line:
var $accepted_currencies = array( "KES", "USD" );
So that means that it suppors both KES and USD currencies.

If you want to restrict a payment method to one currency, you need to use the "currency" restriction setting of your payment methods and select the currencies for which they should display.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODYxMzAtYXV0by1jaGFuZ2UtY3VycmVuY3ktYmFzZWQtb24tcGF5bWVudC1tZXRob2Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.161 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
