auto change currency based on payment method

  • Posts: 1
  • Thank you received: 0
8 years 3 months ago #248341

I want to use 2 currencies USD & KES. I am using paypal ($) module & 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 or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 3 months ago #248346

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
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 or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum