From a9436b6d9df840156da7758c885c9eb6e04e61e4 Mon Sep 17 00:00:00 2001 From: Sergey Anufrienko Date: Mon, 29 Oct 2018 19:22:15 +0300 Subject: [PATCH] pass full token to sberbank --- sberbank/service.py | 1 - setup.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sberbank/service.py b/sberbank/service.py index 01480ec..07d4db9 100644 --- a/sberbank/service.py +++ b/sberbank/service.py @@ -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") diff --git a/setup.py b/setup.py index 87c7dc4..8ac081a 100644 --- a/setup.py +++ b/setup.py @@ -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',