$objOrderEmailDetails = new OrderConfirmationEmail(); $orderedId = $string['orderedId']; $productId = $string['productId']; $productName = $string['productName']; $productPrice = $string['productPrice']; $quantity = $string['quantity']; $shippingCharges = $string['shippingCharges']; $productTotalPrice = $string['productTotalPrice']; $name = $string['customer_name']; $mobileno = $string['customer_contact']; $email = $string['customer_email']; $buildingname = $string['address']; $area = $string['area']; $city = $string['city']; $pincode = $string['pincode']; $response['saveOrderEmailDetailsResponse'] = $objOrderEmailDetails->GeneraeEmailForUserVendor($orderedId, $productId, $productName, $productPrice, $quantity, $shippingCharges, $productTotalPrice, $name, $mobileno, $email, $buildingname, $area, $city, $pincode); //deliver_response($format[1],$response,false); deliver_response($string['format'], $response, false); } else { if (strcasecmp($method, 'orderGenaration') == 0) { $response['code'] = 1; $response['status'] = $api_response_code[$response['code']]['HTTP Response']; $objOrdersDetails = new OrderDetails(); $productId = $string['productId']; $quantity = $string['quantity']; $shippingCharges = $string['shippingCharges']; $productTotalPrice = $string['productTotalPrice']; $name = $string['customer_name']; $mobileno = $string['customer_contact']; $email = $string['customer_email']; $buildingname = $string['address'];