Skip to content

Commit

Permalink
updated make_payment with endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Chen1 committed Feb 16, 2024
1 parent ec5dd22 commit 30b3c91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions swan/api/swan_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
CP_MACHINES,
PROVIDER_PAYMENTS,
TASKS,
DEPLOY_STATUS
DEPLOY_STATUS,
USER_PROVIDER_PAYMENTS
)

class SwanAPI(APIClient):
Expand Down Expand Up @@ -80,7 +81,7 @@ def make_payment(self):
)
payment_info["payment_key"] = self.payment_key
result = self._request_with_params(
POST, MAKE_PAYMENT, self.orchestrator_url, payment_info, self.token
POST, USER_PROVIDER_PAYMENTS, self.orchestrator_url, payment_info, self.token
)
return result
except:
Expand Down

0 comments on commit 30b3c91

Please sign in to comment.