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

Issue with 3 decimals on stripe payment

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 have added 4 currencies (OMR, BHD, KWD, JOD) with 3 decimals and its showing fine on the website frontend. But when the order is placed for 3 decimal currencies (lets say 3.590 OMR). it passes only 2 decimals (3.59 OMR) to stripe account and hence the order is getting failed. Please advise how we can pass the same amount (3 decimals) as per the frontend to the stripe account when order is placed.

 

Thanks,

Niyas

Hello Niyas

Are you sure that the plugin of this payment system supports this?

please  drop me  exact  link to the issue and  wp-admin access - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png

 

I have adedd the details as private data.

hello

Have you asked the author of the payment system plugin? "Does this payment system support this price format?"

Hi Pablo,

Tobe honest with you, I'm NOT Sure if the payment system support 3 decimals or not. But they accept all currecies especially above 4 which i mentioned.

Thanks,

Niyas

Unfortunately, if the payment system does not support this format, we cannot do anything.

as I wrote earlier you should ask this - https://c2n.me/4eNedYn.png

Hi Pablo,

Can we round the second decimal to 0(zero) ?

i mean 1.96 OMR to 2.00 OMR

OR

2.54 OMR to 2.50 OMR?

 

Thanks,

Niyas

Hello Niyas

Please read this - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/  AND  https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/

 

Hi Pablo,

Thanks for the above links.

I have added below code to my current theme function.php.

add_filter('woocs_raw_woocommerce_price', function($price) {
return round($price * 2, 0) / 2;
});

add_filter('woocs_woocommerce_variation_prices', function($price) {
return round($price * 2, 0) / 2;
});

Everything works fine. But for the variable products with regular price and sale price i'm getting the below Warning.

Link to warning page: https://www.software-planet.com/product/kaspersky-security-cloud/

hello

Please change  code

add_filter('woocs_woocommerce_variation_prices', function($price) {

if (is_numeric($price)) {
return round($price * 2, 0) / 2;

}

return $price;
});

Hi Pablo,

 

I have contacted WooCommerce Stripe Gateway plugin support and they told to check by disabling WOOCS plugin. And when i deactivated WOOCS Plugin, it accepted 3 decimal points and order was successful. Please advise how we can accomplish this WOOCS Plugin.

 

Thanks,

Niyas

Hello Niyas

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