Skip to content

Commit

Permalink
adding new gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Nov 29, 2023
1 parent 1312fa6 commit 2692bd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions say/api/payment_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def post(self, data: NewPaymentSchema):
# zibal gateway
if gateWay == 2:
zibal_request = zibal.request(payment.bank_amount, payment.order_id, desc)
return zibal_request
if int(zibal_request["result"]) != 100:
raise HTTPException(
status_code=422,
Expand Down

0 comments on commit 2692bd1

Please sign in to comment.