PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Wrong currency the apple pay payments on product page

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi i'm using stripe plugin with fast payment apple pay on product page and fox currency switch plugin.
when we try to buy the price is the default value but the currency is in the geoIP value, how can I force to use the default value?

thanks

Hello

Please describe it in more detail.

One currency is displayed on the product page, the order is placed in another currency(with fast payment apple pay)

example: the default currency is"EUR" and the product cost 1000 EUR, if a client try to connect from USA i can see(on the product page) 1100 USD.

if from the product page, try to buy via apple pay he see the price 1000 USD instead 1000 EUR.

last note: all payments must be done only in  EUR.

thanks

Hello

Ok! Do you have the multicurrency function activated in woocommerce(native functionality)? if so turn it off

all payments must be done only in  EUR.  - What settings did you make for this? custom code?

What plugin version number are you using?

Hi i'm using

FOX - Currency Switcher Professional for WooCommerce v.2.4.0 i put in this plugin in the advanced tab --> Is multiple allowed (No) in this way in cart or checkout page the payment is in EUR(the default currency) and this works

but from Product page the amount sent to Apple is in EUR but the currencyis wrong

 

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png and  wp-admin access - https://share.pluginus.net/image/i20230222134615.png

Drop  me exact  link to the  issue

 

attached licence and credentials

if you put a currency <>"EUR" i.e USD and you go to a product page when you try to pay with apple pay you can see the amount in EUR but currency is USD

Hello

Please drop me  ftp  access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png - I will check  it

just put it

thanks

Devis

OK! Our developer will check it tomorrow

Hello

Please  do a test

now works  Thanks, may I ask you what was the issue, in order to apply also in the productive website?

Please make a full test and only after that transfer the changes to the live site

In  file - \wp-content\plugins\woocommerce-gateway-stripe\includes\payment-methods\class-wc-stripe-payment-request.php  - I added  function - https://share.pluginus.net/image/i20230323170423.png

public function get_currency_compatibility(){
$currency = get_woocommerce_currency();
if (class_exists('WOOCS')) {
global $WOOCS;
if (!$WOOCS->is_multiple_allowed) {
$currency = $WOOCS->default_currency;
}

}

return $currency;
}

and   code -  https://share.pluginus.net/image/i20230323170414.png

//$data['currency'] = strtolower( get_woocommerce_currency() );
//woocs
$data['currency'] = strtolower($this->get_currency_compatibility());

and  code - https://share.pluginus.net/image/i20230323170523.png

//'currency_code' => strtolower( get_woocommerce_currency() ),
//woocs
'currency_code' => strtolower($this->get_currency_compatibility()),

and  code - https://share.pluginus.net/image/i20230323170812.png

//$currency = get_woocommerce_currency();
//woocs
$currency = $this->get_currency_compatibility();

 

and  code - https://share.pluginus.net/image/i20230323171026.png

//$data['currency'] = strtolower( get_woocommerce_currency() );
//woocs
$data['currency'] = strtolower( $this->get_currency_compatibility());