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
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user