diff --git a/sberbank/service.py b/sberbank/service.py index 1f633b5..af4df57 100644 --- a/sberbank/service.py +++ b/sberbank/service.py @@ -49,7 +49,7 @@ def mobile_pay(self, amount, token, ip, **kwargs): try: decoded_token = json.loads(base64.b64decode(token).decode()) - if "encryptedMessage" in decoded_token: + if "signedMessage" in decoded_token: method = "google/payment" except: raise TypeError("Failed to decode payment token") diff --git a/setup.py b/setup.py index 2fa89df..0c76aa0 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import setuptools setuptools.setup(name='django-sberbank', - version='0.2.10', + version='0.2.11', description='Django app for Sberbank payments', url='http://github.com/madprogrammer/django-sberbank', author='Sergey Anufrienko',