Skip to content

Commit

Permalink
Change stripe checkout session success_url and cancel_url
Browse files Browse the repository at this point in the history
  • Loading branch information
earlinn committed Jan 11, 2024
1 parent 085e47b commit d13d110
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/good_food_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: flake8_and_tests
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down
5 changes: 3 additions & 2 deletions backend/api/orders_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,9 @@ def pay(self, request, *args, **kwargs):
}
],
success_url=domain_url
+ "payment-results?session_id={CHECKOUT_SESSION_ID}",
cancel_url=domain_url + "cart",
+ "payment-is-processing?session_id={CHECKOUT_SESSION_ID}",
cancel_url=domain_url
+ "payment-cancelled?session_id={CHECKOUT_SESSION_ID}",
client_reference_id=request.user.username
if request.user.is_authenticated
else None,
Expand Down

0 comments on commit d13d110

Please sign in to comment.