summaryrefslogtreecommitdiffstats
path: root/eopayment/sips.py
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-02-08 17:40:45 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-02-16 14:56:56 (GMT)
commit8cd625e4651ededa92d888c31d64fafa578f2a9e (patch)
tree7f2a10d67c73a9c4763a4f8868bf2a2e5031b238 /eopayment/sips.py
parent33ba732c91f08a3a2cfea7ebe8e277c6cd7881cb (diff)
downloadeopayment-8cd625e4651ededa92d888c31d64fafa578f2a9e.zip
eopayment-8cd625e4651ededa92d888c31d64fafa578f2a9e.tar.gz
eopayment-8cd625e4651ededa92d888c31d64fafa578f2a9e.tar.bz2
pass order id to all backends (#9941)
Diffstat (limited to 'eopayment/sips.py')
-rw-r--r--eopayment/sips.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/eopayment/sips.py b/eopayment/sips.py
index 028a8f6..73c79d5 100644
--- a/eopayment/sips.py
+++ b/eopayment/sips.py
@@ -132,13 +132,14 @@ class Payment(PaymentCommon):
params.update(self.options)
return params
- def request(self, amount, name=None, address=None, email=None, phone=None, info1=None,
- info2=None, info3=None, next_url=None, **kwargs):
+ def request(self, amount, name=None, address=None, email=None, phone=None, orderid=None,
+ info1=None, info2=None, info3=None, next_url=None, **kwargs):
params = self.get_request_params()
transaction_id = self.transaction_id(6, string.digits, 'sips',
params[MERCHANT_ID])
params[TRANSACTION_ID] = transaction_id
- params[ORDER_ID] = str(uuid.uuid4()).replace('-', '')
+ params[ORDER_ID] = orderid or str(uuid.uuid4())
+ params[ORDER_ID] = params[ORDER_ID].replace('-', '')
params['amount'] = str(int(Decimal(amount) * 100))
if email:
params['customer_email'] = email