Skip to content

Commit cb7c35c

Browse files
committed
update pan on successful payment
1 parent 7315f93 commit cb7c35c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sberbank/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def mobile_pay(self, amount, token, ip, **kwargs):
9797

9898
if response.get('success'):
9999
payment.bank_id = response.get('data').get('orderId')
100-
payment.status = Status.PENDING
100+
payment.status = Status.SUCCEEDED
101+
payment.details.update({"pan": response['orderStatus']['cardAuthInfo']['pan']})
101102
else:
102103
payment.status = Status.FAILED
103104

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import setuptools
22

33
setuptools.setup(name='django-sberbank',
4-
version='0.2.21',
4+
version='0.2.22',
55
description='Django app for Sberbank payments',
66
url='http://github.com/madprogrammer/django-sberbank',
77
author='Sergey Anufrienko',

0 commit comments

Comments
 (0)