summaryrefslogtreecommitdiffstats
path: root/eopayment/sips.py
diff options
context:
space:
mode:
authorMathieu Comandon <strycore@gmail.com>2012-06-13 12:38:52 (GMT)
committerMathieu Comandon <strycore@gmail.com>2012-06-13 12:38:52 (GMT)
commit21706146c0dc373306d1bc38dedceaf0971d134e (patch)
tree2da8a7669cf3c7be887d9ecf4afa2196b6aa118f /eopayment/sips.py
parent6f8f2521621e2f39a4f68f62e29129bf017d0a0a (diff)
downloadeopayment-21706146c0dc373306d1bc38dedceaf0971d134e.zip
eopayment-21706146c0dc373306d1bc38dedceaf0971d134e.tar.gz
eopayment-21706146c0dc373306d1bc38dedceaf0971d134e.tar.bz2
Amount not passed as integer in params
Diffstat (limited to 'eopayment/sips.py')
-rw-r--r--eopayment/sips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/eopayment/sips.py b/eopayment/sips.py
index 3907019..d3b477f 100644
--- a/eopayment/sips.py
+++ b/eopayment/sips.py
@@ -133,7 +133,7 @@ class Payment(PaymentCommon):
params[MERCHANT_ID])
params[TRANSACTION_ID] = transaction_id
params[ORDER_ID] = str(uuid.uuid4()).replace('-', '')
- params['amount'] = str(Decimal(amount) * 100)
+ params['amount'] = str(int(Decimal(amount) * 100))
if email:
params['customer_email'] = email
if next_url: