Skip to content

Commit

Permalink
Merge pull request #8 from AltaPay/set_Redirect_result_as_success
Browse files Browse the repository at this point in the history
Set Redirect result as success in reservation
  • Loading branch information
maf-embraceit authored Mar 27, 2023
2 parents cf13441 + b22c082 commit 674e3ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
test:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change Log
----------

1.5.3
+++++++++++++++++++++

**Features**

- Add redirect response as success in reservation

1.5.2
+++++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion altapay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'altapay'
__version__ = '1.5.2'
__version__ = '1.5.3'
__author__ = 'Coolshop.com'
__license__ = 'MIT'
__github_url__ = 'https://github.com/coolshop-com/AltaPay'
Expand Down
3 changes: 2 additions & 1 deletion altapay/reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ def get_post_url(self):

@property
def success(self):
return self.error_code == 0 and self.result == 'Success'
return self.error_code == 0 and \
(self.result == 'Success' or self.result == 'Redirect')

0 comments on commit 674e3ed

Please sign in to comment.