Added one more handler for backoffice view to show all items in /items/backoffice
After consideration, I think disabling to update the two crucial items of donation and transaction costs is better than not showing them to the backoffice user. I would do that in a future PR. What do you think @nanu-c ?
Changed /items/ handler to list only purchasable items i.e. licenses
Improved orders call so items with licenses do not mess up the index in the for loop anymore
Extended response of verify handler /orders/verify/
TODO
Checklist:
[x] I have commented my code (or ChatGPT did), particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings, neither in my IDE nor in my browser
[x] I have added tests that prove my fix is effective or that my feature works
Type of change
Description
IMPORTANT TO KNOW
This PR would require a change in the frontend not calling
/items/
anymore but/items/backoffice/
instead!!First you have to comment these lines as a hack in dev mode to get the verify-response without verifying the order.
Then start all your containers
docker compose up -d
For this PR to review you then need to create an order with a JSON-Input such as in swagger
After a successful redirection from VivaWallets demo instance you have to copy and paste transactionID and orderID into the /orders/verify GET-call.
Your sample response should look simliar to this one:
CHANGES
/items/backoffice
/items/
handler to list only purchasable items i.e. licenses/orders/verify/
TODO
Checklist: