Skip to content

Commit

Permalink
return payment object
Browse files Browse the repository at this point in the history
  • Loading branch information
madprogrammer committed Oct 26, 2018
1 parent a18bfb0 commit ea897b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sberbank/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def mobile_pay(self, amount, token, ip, **kwargs):
payment.status = Status.FAILED

payment.save()
return response
return payment, response

def pay(self, amount, preauth=False, **kwargs):
session_timeout = self.merchant.get('session_timeout', self.__default_session_timeout)
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.19',
version='0.2.20',
description='Django app for Sberbank payments',
url='http://github.com/madprogrammer/django-sberbank',
author='Sergey Anufrienko',
Expand Down

0 comments on commit ea897b2

Please sign in to comment.