Payments
+Payment Method | +Amount | +Status | +Description | +Date Created | +Action | +
---|---|---|---|---|---|
+ | + | + | + | + | + + |
diff --git a/vendor-payments.php b/vendor-payments.php new file mode 100644 index 0000000..be9c8ae --- /dev/null +++ b/vendor-payments.php @@ -0,0 +1,704 @@ + "") { + $_SESSION["isLoggedIn"] = true; + $vendorLoginId = searchVendorbyLoginId($_SESSION["userId"]); + $vendorLoginIdjson = json_decode($vendorLoginId, true); + if (isset($vendorLoginIdjson['results'][0])) { + $vendorData = $vendorLoginIdjson['results'][0]; + $vendorId = $vendorData['_id']; + $_SESSION["LoggedInVendorId"] = $vendorId; + } +} else { + $_SESSION["isLoggedIn"] = false; + header("location: login.php"); +} +$products = productList(); +$shopOrders = getOrderbyVendorId($vendorId); +$vendorOrderss = json_decode($shopOrders); + +if (is_array($vendorOrderss)) { + $vendorOrders = json_decode($shopOrders); +} elseif (is_object($vendorOrderss) && property_exists($vendorOrderss, 'message')) { + $vendorOrders = []; +} else { + echo "Unknown type or no 'message' property found."; +} +?> + + + +
+ + + + +Payment Method | +Amount | +Status | +Description | +Date Created | +Action | +
---|---|---|---|---|---|
+ | + | + | + | + | + + |
Chat with us on WhatsApp
+