more cleaning and added the url in API endpoint
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 1m59s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been skipped
Run linting on the backend code / Build (pull_request) Successful in 46s
Run testing on the backend code / Build (pull_request) Failing after 2m46s

This commit is contained in:
2025-10-19 22:20:54 +02:00
parent a884b9ee14
commit d9724ff07d
4 changed files with 12 additions and 12 deletions

View File

@@ -231,7 +231,12 @@ class PaypalClient:
return access_token
def order(self, order_request: OrderRequest):
def order(
self,
order_request: OrderRequest,
return_url_success: str,
return_url_failure: str
):
"""
Creates a new PayPal order.
@@ -263,10 +268,9 @@ class PaypalClient:
}
}
],
# TODO: add these to anydev website
'application_context': {
'return_url': 'https://anydev.info',
'cancel_url': 'https://anydev.info'
'return_url': return_url_success,
'cancel_url': return_url_failure
}
}