summaryrefslogtreecommitdiffstats
path: root/eopayment/systempayv2.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-29 15:43:51 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-29 15:43:51 (GMT)
commit34408e855fc521b8d37580295bcdd8d4304fe366 (patch)
tree265d2d7c5e5242dd2f1d85f082dfc1974d6a5a57 /eopayment/systempayv2.py
parenteda8cacdae00312f31da6b2e8956635aa39cf297 (diff)
downloadeopayment-34408e855fc521b8d37580295bcdd8d4304fe366.zip
eopayment-34408e855fc521b8d37580295bcdd8d4304fe366.tar.gz
eopayment-34408e855fc521b8d37580295bcdd8d4304fe366.tar.bz2
systempayv2: amount unit is cents
Diffstat (limited to 'eopayment/systempayv2.py')
-rw-r--r--eopayment/systempayv2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py
index 7b5f0ae..4c78f52 100644
--- a/eopayment/systempayv2.py
+++ b/eopayment/systempayv2.py
@@ -256,6 +256,8 @@ class Payment(PaymentCommon):
'''
self.logger.debug('%s amount %s email %s next_url %s, kwargs: %s',
__name__, amount, email, next_url, kwargs)
+ # amount unit is cents
+ amount = 100 * amount
kwargs.update(add_vads({'amount': amount}))
if Decimal(kwargs[VADS_AMOUNT]) < 0:
raise ValueError('amount must be an integer >= 0')