Jump to content
WebFlake
  • 0

How to change currency display format?


Blacksail£

Question

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

  • 0

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:

ocmlU1L.png

It's either that, or just don't use decimals, lol.

Edited by Djlatino
Link to comment
Share on other sites

  • 0

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.

  • Upvote 1
Link to comment
Share on other sites

  • 0

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

  • 0

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:

ocmlU1L.png

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...