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."; +} +?> + + + + + + + + + oBanana B2B - Elevate Your Business + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ + + + + + + + + + +
+
+
+
+
+
+

User History

+
+
+ +
    +
  • Home
  • +
  • History
  • +
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ + +
+ +
+ + +
+ + alt="vendor image"> + + vendor image + + +
+
+ + + + +
+
+
+
+
+
+
+
Payments
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Payment MethodAmountStatusDescriptionDate CreatedAction
+
+ +
+
+
+
+
+
+
+ + + + + + + + + + +
+
+
+
+ +
+
+ 3 +
+
+ +
+
+ 4 +
+
+ +
+ +
+
+
+ + + + + + + + +
+ +
+
+ 3 +
+
+ + + +
+ +
+ +
+ Need Help? +

Chat with us on WhatsApp

+
+ + +
+ + +
+
+
+ whatsapp icon +
+
+
+ +
+ + + +
+
+
+

Features

+
+ + icon + +
+
+

Color Scheme

+
    +
  • +
  • +
  • +
  • +
  • +
+
+
+

Backgrounds

+ +
+
+

Full Screen mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

Dark mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

RTL mode

+
+
+
Rtl
+
On
+
Off
+
+
+
+
+

Clear local storage

+ Clear Cache & Default +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vendor-user-tabs.php b/vendor-user-tabs.php index fc69951..cb154a5 100644 --- a/vendor-user-tabs.php +++ b/vendor-user-tabs.php @@ -9,6 +9,7 @@ $current_page = basename($_SERVER['PHP_SELF']);
  • >Uploads
  • >Settings (edit)
  • >Vendor Refund History
  • +
  • >Payments