strapi-examples
strapi-examples copied to clipboard
Cooking a Deliveroo clone with Next.js
Node.js version: 11.1.0 NPM version: 6.4.1 Strapi version: 3.0.0-alpha.17 Database: MariaDB/Mysql 10.3.10 Operating system: Mac Optional) Link to your Project: https://github.com/Williamyip146/deliveroo
I have problems with the checkout page, once I've made the payment I get a 500 error message and redirect to homepage. I've checked on the Admin backend to check the order table is still empty after the payment has been made. The following are the errors i am getting:
It suppoed to update the order table and display the latest orders, made by the clients. On the stripe it shows the payment was successed so i am not sure what's causing the errors.

I don't have 500 on my side can you try with version that is on the repo.
This bug may be related to an issue in the sample code not using authenticated post. A temporarily fix is to enable "public" access for orders.create in the Admin module and the code will work.
A proper fix is future is to investigate why the call is not posted with authenticated user.
I have the same issue and enable the public access for orders.create in the admin module didn't solve it...
I have the same bug, did anyone manage to solve this?
I had this issue and fixed it by checking my logs on heroku and I found that the content type number formats were not matching, so I changed my number formats from big integer to decimals