From a0289a997a414bc3f214b456103f3c7d5fbba5cc Mon Sep 17 00:00:00 2001 From: Jun Barroga Date: Mon, 22 Apr 2024 10:36:49 +0800 Subject: [PATCH] Fix bug on Obananapay Checkout --- checkouttest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {