I don’t see any taxes information in your fullOrder.total that’s probably why taxes aren’t showing up.
SECURITY CONCERNS
I see several security issues in your code:
-
The payment amount is sent from the frontend to
createMyPayment: this means anyone could create a payment of 0.01€ instead of 1000€ and your system will process it. -
You build orders in the frontend with
createOrder: that means anyone can “hack” your system to send a new order, even if they are not paid, or add items to their order after it was paid.
I highly recommend fixing those issues to avoid bad surprises.
