diff --git a/checkouttest.php b/checkouttest.php index 4cfb43c..cf74d7c 100644 --- a/checkouttest.php +++ b/checkouttest.php @@ -1381,7 +1381,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] const token = ''; const shippingfee = parseFloat(orderId.shipping_fee) const orderPay3ProductId = orderId.items[0].product.product_id; - const productPay3Response = await fetch(`https:///api/v1/products/${orderProductId}`); + const productPay3Response = await fetch(`https:///api/v1/products/${orderPay3ProductId}`); const productPay3Data = await productPay3Response.json(); let freeShippingObPay = false; if (productPay3Data.promo && productPay3Data.promo.length > 0 && productPay3Data.promo[0]['free-shipping'] === 'Yes') {