Merge pull request #35 from lnbits/fix_send_shipping_id
fix: add shipping zone id to order
This commit is contained in:
commit
e7b16dd17f
1 changed files with 4 additions and 2 deletions
|
|
@ -184,7 +184,8 @@ async function customerStall(path) {
|
||||||
},
|
},
|
||||||
items: Array.from(this.cart.products, p => {
|
items: Array.from(this.cart.products, p => {
|
||||||
return {product_id: p[0], quantity: p[1].quantity}
|
return {product_id: p[0], quantity: p[1].quantity}
|
||||||
})
|
}),
|
||||||
|
shipping: orderData.shippingzone
|
||||||
}
|
}
|
||||||
orderObj.id = await hash(
|
orderObj.id = await hash(
|
||||||
[orderData.pubkey, created_at, JSON.stringify(orderObj)].join(':')
|
[orderData.pubkey, created_at, JSON.stringify(orderObj)].join(':')
|
||||||
|
|
@ -267,7 +268,8 @@ async function customerStall(path) {
|
||||||
},
|
},
|
||||||
items: Array.from(this.cart.products, p => {
|
items: Array.from(this.cart.products, p => {
|
||||||
return {product_id: p[0], quantity: p[1].quantity}
|
return {product_id: p[0], quantity: p[1].quantity}
|
||||||
})
|
}),
|
||||||
|
shipping: orderData.shippingzone
|
||||||
}
|
}
|
||||||
let created_at = Math.floor(Date.now() / 1000)
|
let created_at = Math.floor(Date.now() / 1000)
|
||||||
orderObj.id = await hash(
|
orderObj.id = await hash(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue