payment logic done

This commit is contained in:
2021-11-18 22:32:55 -03:00
parent 0ff5b5b92a
commit 4bbffe9d0c
10 changed files with 165 additions and 3 deletions

18
payment/script/script.js Normal file
View File

@@ -0,0 +1,18 @@
import logoLink from './logoLink.js'
logoLink()
import getOrderData from './getOrderData.js'
const order = getOrderData()
if (order === null || order === {}) {
window.location = '../'
}
console.log(order)
import putOrderInHTML from './putOrderInHTML.js'
const totalPrice = putOrderInHTML(order)
import calculateTotal from './calculateTotal.js'
calculateTotal(totalPrice)