Blacksail£ Posted August 17, 2015 Share Posted August 17, 2015 Hello guys,Because paypal doesn't accept currency with decimal format in my local currency. I need to change the display format from eg: 2.00 to 2https://developer.paypal.com/docs/classic/api/currency_codes/You can see that some of the currency is not accepted as decimal, this way my site throw error at the payment gateway.The default USD is working fine, but my local currency throw error without redirection to paypal site. Link to comment Share on other sites More sharing options...
0 Djlatino Posted August 18, 2015 Share Posted August 18, 2015 (edited) The placebo fix is: when showing your prices with whatever you're using, don't make the prices determined by paypal, rather the IPB application itself. However, because PayPal doesn't support decimal via API means that it won't support it at all, period. The issue here is that PayPal doesn't support decimal because the amount in decimal is so minimal compared to the US Dollar that they lose money with the feature enabled therefore disable it completely for those currencies. That being said, if you really want it, it's not something anyone with IPB knowledge can help you with, but speaking with PayPal dev support would, however, they would probably tell you the same thing. Bypassing these kind of things could get you banned from the API, but some people do it anyways, I haven't seen anyone bypass the decimal issue as they just conformed to not using decimals. But there's no way to change something in IPB so the payment will work? I mean something in the code that will remove decimal from the currency? I guess, theoretically, you could. You'd have to use the round function for the payment method "PayPal". The directories you should be going into to see where the value placement takes place are in: It's either that, or just don't use decimals, lol. Edited August 18, 2015 by Djlatino Link to comment Share on other sites More sharing options...
0 Djlatino Posted August 17, 2015 Share Posted August 17, 2015 The placebo fix is: when showing your prices with whatever you're using, don't make the prices determined by paypal, rather the IPB application itself. However, because PayPal doesn't support decimal via API means that it won't support it at all, period.The issue here is that PayPal doesn't support decimal because the amount in decimal is so minimal compared to the US Dollar that they lose money with the feature enabled therefore disable it completely for those currencies. That being said, if you really want it, it's not something anyone with IPB knowledge can help you with, but speaking with PayPal dev support would, however, they would probably tell you the same thing. Bypassing these kind of things could get you banned from the API, but some people do it anyways, I haven't seen anyone bypass the decimal issue as they just conformed to not using decimals. 1 Link to comment Share on other sites More sharing options...
0 Blacksail£ Posted August 18, 2015 Author Share Posted August 18, 2015 The placebo fix is: when showing your prices with whatever you're using, don't make the prices determined by paypal, rather the IPB application itself. However, because PayPal doesn't support decimal via API means that it won't support it at all, period.The issue here is that PayPal doesn't support decimal because the amount in decimal is so minimal compared to the US Dollar that they lose money with the feature enabled therefore disable it completely for those currencies. That being said, if you really want it, it's not something anyone with IPB knowledge can help you with, but speaking with PayPal dev support would, however, they would probably tell you the same thing. Bypassing these kind of things could get you banned from the API, but some people do it anyways, I haven't seen anyone bypass the decimal issue as they just conformed to not using decimals.But there's no way to change something in IPB so the payment will work? I mean something in the code that will remove decimal from the currency? Link to comment Share on other sites More sharing options...
0 Nervodx Posted August 19, 2015 Share Posted August 19, 2015 I don't see why you need to use decimals; all you need to do is round up or down. Link to comment Share on other sites More sharing options...
0 Blacksail£ Posted August 19, 2015 Author Share Posted August 19, 2015 The placebo fix is: when showing your prices with whatever you're using, don't make the prices determined by paypal, rather the IPB application itself. However, because PayPal doesn't support decimal via API means that it won't support it at all, period. The issue here is that PayPal doesn't support decimal because the amount in decimal is so minimal compared to the US Dollar that they lose money with the feature enabled therefore disable it completely for those currencies. That being said, if you really want it, it's not something anyone with IPB knowledge can help you with, but speaking with PayPal dev support would, however, they would probably tell you the same thing. Bypassing these kind of things could get you banned from the API, but some people do it anyways, I haven't seen anyone bypass the decimal issue as they just conformed to not using decimals. But there's no way to change something in IPB so the payment will work? I mean something in the code that will remove decimal from the currency? I guess, theoretically, you could. You'd have to use the round function for the payment method "PayPal". The directories you should be going into to see where the value placement takes place are in: It's either that, or just don't use decimals, lol. I don't see why you need to use decimals; all you need to do is round up or down. Alright right guys, maybe my english is sux, but you two said why i just don't use decimals. Well, that's what i want. But how to? Link to comment Share on other sites More sharing options...
0 Djlatino Posted August 19, 2015 Share Posted August 19, 2015 (edited) Do whatever you need to to understand what I said in my post about using the round function. I said, if you really want to, use the function. Please read next time. Edited August 19, 2015 by Djlatino Link to comment Share on other sites More sharing options...
0 Kingy Posted August 20, 2015 Share Posted August 20, 2015 The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
Blacksail£
Hello guys,
Because paypal doesn't accept currency with decimal format in my local currency. I need to change the display format from eg: 2.00 to 2
https://developer.paypal.com/docs/classic/api/currency_codes/
You can see that some of the currency is not accepted as decimal, this way my site throw error at the payment gateway.
The default USD is working fine, but my local currency throw error without redirection to paypal site.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts