Skip to content

Commit

Permalink
new payment gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Nov 29, 2023
1 parent e9ee4ad commit 9007357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions say/api/payment_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ def post(self, data: NewPaymentSchema):
)
if zibal_request["result"] == 100:
trackId = zibal_request["trackId"]

link = "https://gateway.zibal.ir/start/" + zibal_request["trackId"]
payment.gateway_payment_id = zibal_request["trackId"]
payment.link = link
link = urljoin("https://gateway.zibal.ir/start/", trackId)
payment.gateway_payment_id = trackId
payment.link = link
return payment


Expand Down

0 comments on commit 9007357

Please sign in to comment.