# PayPal Gateway amount\_total

**URL:** <https://forum.modmore.com/t/paypal-gateway-amount-total/237>\
**Category:** SimpleCart\
**Created:** [February 5, 2016, 8:12am UTC](https://forum.modmore.com/t/paypal-gateway-amount-total/237 "2016-02-05T08:12:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMedusa](https://forum.modmore.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@PMedusa](https://forum.modmore.com/u/PMedusa)\
**Post date:** [February 5, 2016, 8:12am UTC](https://forum.modmore.com/t/paypal-gateway-amount-total/237/1 "2016-02-05T08:12:07Z")

</div>

Hello,

I have a problem with the formatting of the total, when the total exceeds one thousand euro:

if core/components/simplecart\_paypal/paypal.class.php on line 18  
$total = number\_format($this-\>order-\>get(‘total’), 2, ‘.’, ‘,’);  
retur 2,110.60 paypal SANDBOX turns it into 2,00 USD  
 ![](https://forum.modmore.com/uploads/default/original/1X/cd08cbc7a65dc5656f3fb3b61a16348d01a9d569.png)

else if i change $total = number\_format($this-\>order-\>get(‘total’), 2, ‘.’, ‘,’); to $total = number\_format($this-\>order-\>get(‘total’), 2, ‘.’, ‘’); total becomes 2110.60 an paypal sandbox shows the correct amount.  
 ![](https://forum.modmore.com/uploads/default/original/1X/1350701f231db70397fa9713092abc1df4f1ec8f.png)

It may be due to the configuration of my paypal test accounts?

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [February 8, 2016, 12:48pm UTC](https://forum.modmore.com/t/paypal-gateway-amount-total/237/2 "2016-02-08T12:48:47Z")

</div>

Hi @PMedusa, sounds like a bug in the gateway and the fix you mention is pretty much the way I’d look to fix that 😄 I’ve logged this in our public tracker for the PayPal gateway at [https://github.com/modmore/SimpleCart\_PayPal/issues/1](https://github.com/modmore/SimpleCart_PayPal/issues/1) and will push out a new release of the gateway soon.

---

<div class="post-metadata">

**Author:** ![PMedusa](https://forum.modmore.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@PMedusa](https://forum.modmore.com/u/PMedusa)\
**Post date:** [February 8, 2016, 5:02pm UTC](https://forum.modmore.com/t/paypal-gateway-amount-total/237/3 "2016-02-08T17:02:55Z")

</div>

Hi Mark,

also paypal documentation is wrong → [link](https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECGettingStarted/#id084RM05055Z) 😕

> For example, EUR 2.000,00 must be specified as 2000.00 or 2,000.00. The specified amount should not exceed any per transaction amount limits for the currency used.

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [March 7, 2016, 11:44am UTC](https://forum.modmore.com/t/paypal-gateway-amount-total/237/4 "2016-03-07T11:44:10Z")

</div>

Hi @PMedusa, I’ve just pushed a 1.1.5 release of the gateway that fixes this issue. Let me know if you encounter any other issues!

---

<div class="post-metadata">

**Author:** ![PMedusa](https://forum.modmore.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@PMedusa](https://forum.modmore.com/u/PMedusa)\
**Post date:** [March 9, 2016, 7:58am UTC](https://forum.modmore.com/t/paypal-gateway-amount-total/237/5 "2016-03-09T07:58:35Z")

</div>

Thank you again Mark
