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 pleaseIf 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.
Quote from niyas@alhosanime.com on January 28, 2022, 12:45Hi,
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
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
Quote from Pablo Borysenco on January 28, 2022, 14:08Hello 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
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
Quote from niyas@alhosanime.com on January 28, 2022, 15:06I have adedd the details as private data.
I have adedd the details as private data.
Quote from Pablo Borysenco on January 31, 2022, 11:39hello
Have you asked the author of the payment system plugin? "Does this payment system support this price format?"
hello
Have you asked the author of the payment system plugin? "Does this payment system support this price format?"
Quote from niyas@alhosanime.com on February 1, 2022, 11:37Hi 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
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
Quote from Pablo Borysenco on February 1, 2022, 13:44Unfortunately, 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
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
Quote from niyas@alhosanime.com on February 1, 2022, 13:50Hi 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
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
Quote from Pablo Borysenco on February 2, 2022, 10:39Hello Niyas
Please read this - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/ AND https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/
Hello Niyas
Please read this - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/ AND https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/
Quote from niyas@alhosanime.com on February 2, 2022, 14:02Hi 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/
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/
Quote from Pablo Borysenco on February 3, 2022, 10:54hello
Please change code
add_filter('woocs_woocommerce_variation_prices', function($price) {
if (is_numeric($price)) {
return round($price * 2, 0) / 2;}
return $price;
});
hello
Please change code
add_filter('woocs_woocommerce_variation_prices', function($price) {
if (is_numeric($price)) {
return round($price * 2, 0) / 2;
}
return $price;
});
Quote from niyas@alhosanime.com on February 8, 2022, 13:06Hi 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
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
Quote from Pablo Borysenco on February 9, 2022, 10:41Hello Niyas
Please drop me ftp access - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png - I will check it
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