Skip to content

Commit

Permalink
Merge pull request #866 from MikeSoft007/feat/stripe_checkout
Browse files Browse the repository at this point in the history
bugfix: updated success and cancel request response
  • Loading branch information
joboy-dev authored Aug 12, 2024
2 parents 8cc5e25 + 0fec7f6 commit 7c28790
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/v1/routes/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ def stripe_payment(

@subscription_.get("/stripe/success")
def success_upgrade():
return {"message" : "Payment successful"}

return success_response(status_code=status.HTTP_201_CREATED, message="Payment intent initiated")

@subscription_.get("/stripe/cancel")
def cancel_upgrade():
return {"message" : "Payment canceled"}
return success_response(status_code=status.HTTP_201_CREATED, message="Payment intent canceled")


@subscription_.get("/plans")
Expand Down

0 comments on commit 7c28790

Please sign in to comment.