added todo
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 3h0m47s
Run linting on the backend code / Build (pull_request) Successful in 3m24s
Run testing on the backend code / Build (pull_request) Failing after 2m46s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been cancelled

This commit is contained in:
2025-10-19 18:34:45 +02:00
parent 54f541382e
commit b4cac3a357
2 changed files with 4 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ router = APIRouter()
logger = logging.getLogger(__name__)
# TODO: add the return url in the API payload to redirect the user to the app.
@router.post("/orders/new")
def create_order(
user_id: str,

View File

@@ -49,18 +49,18 @@ order_data = {
"quantity": 1,
"unit_amount": {
"currency_code": "CHF",
"value": "5.00"
"value": "1.50"
}
}
],
"amount": {
"currency_code": "CHF",
"value": "5.00",
"value": "1.50",
"breakdown": {
"item_total": {
"currency_code": "CHF",
"value": "5.00"
"value": "1.50"
}
}
}