Skip to content

Commit

Permalink
pass full token to sberbank
Browse files Browse the repository at this point in the history
  • Loading branch information
madprogrammer committed Oct 29, 2018
1 parent cb7c35c commit a9436b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion sberbank/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def mobile_pay(self, amount, token, ip, **kwargs):
decoded_token = json.loads(base64.b64decode(token).decode())
if "signedMessage" in decoded_token:
method = "google/payment"
token = base64.b64encode(decoded_token['signedMessage'].encode()).decode()
except:
raise TypeError("Failed to decode payment token")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import setuptools

setuptools.setup(name='django-sberbank',
version='0.2.22',
version='0.2.23',
description='Django app for Sberbank payments',
url='http://github.com/madprogrammer/django-sberbank',
author='Sergey Anufrienko',
Expand Down

0 comments on commit a9436b6

Please sign in to comment.