$reservations->setReservationId($merchantReferenceNo); $pay_data = $reservations->getReservationsFromId(); $pay_data = $reservations->getReservationsFromId(); $reservations->extractor($pay_data); $reservation_link_id = $reservations->reservationFromBookingLink(); $reservations_status = $reservations->reservationPaymentStatus(); if ($reservations->reservationFromBookingLink()) { $client = new BookingClient(); $client->setId($reservations->reservationClientId()); $client->extractor($client->getClientsFromId()); $client_name = $client->name(); $client_mobile = $client->contactno(); $client_email = $client->email(); $client_message = $client->message(); $client_city = $client->city(); $client_country = $client->country(); $client_address = $client->address1() . " " . $client->address2(); } else { $client = new Clients(); $client->setClientId($reservations->reservationClientId()); $client->extractor($client->getClientFromId()); $client_name = $client->clientFirstName() . " " . $client->clientLastName(); $client_mobile = $client->clientPhoneMobile(); $client_email = $client->clientEmail(); $client_message = ""; $client_city = $client->clientCity(); $client_country = $client->clientCountry(); $client_address = $client->clientAddress(); } $hotels->setHotelId($reservations->reservationHotelId()); $hotels->extractor($hotels->getHotelFromId());
$merchantReferenceNo = $session->getMerchantReferenceNo(); $reservations->setReservationId($merchantReferenceNo); $pay_data = $reservations->getReservationsFromId(); $reservations->extractor($pay_data); $reservation_link_id = $reservations->reservationFromBookingLink(); $reservations_status = $reservations->reservationPaymentStatus(); $hotels->setHotelId($reservations->reservationHotelId()); $hotels->extractor($hotels->getHotelFromId()); $date = date("Y-m-d"); // current date $new_date = strtotime(date("Y-m-d", strtotime($date)) . " +3 month"); $expire_date = date("Y-m-d", $new_date); $bookingclient->setId($reservations->reservationClientId()); $bookingclient->extractor($bookingclient->getClientsFromId()); $country = new country(); $country->setCountryId($bookingclient->country()); $country->extractor($country->getCountryFromId()); $rooms->setRoomTypeId($reservations->reservationHotelRoomTypeId()); $rooms->extractor($rooms->getHotelRoomTypeFromId()); $client_name = $bookingclient->name(); $client_mobile = $bookingclient->contactno(); $client_email = $bookingclient->email(); $client_message = $bookingclient->message(); $hotel_name = $hotels->hotelName(); $hotel_url = $hotels->hotelSeoUrl(); $room_type = $rooms->roomTypeName(); if ($reservations->reservationBedType() == "sgl") { $bed_type = "Single Bed"; } if ($reservations->reservationBedType() == "dbl") { $bed_type = "Double Bed";
</tr> <tr style="background-color:#e3e3e3; border-bottom:solid 1px #fff;"> <td width="53%" height="30" style="color:#333333; padding-left:10px;">City</td> <td width="3%" style="padding-left:2px;">:</td> <td width="44%" style="padding-left:10px;"><?php echo $bookingclient->city(); ?> </td> </tr> <tr style="background-color:#414141; border-bottom:solid 1px #fff;"> <td width="53%" height="30" style="color:#fff; padding-left:10px;">Country</td> <td width="3%" style="padding-left:2px;">:</td> <td width="44%" style="padding-left:10px;"><?php echo $bookingclient->country(); ?> </td> </tr> <tr style="background-color:#e3e3e3; border-bottom:solid 1px #fff;"> <td width="53%" height="30" style="color:#333333; padding-left:10px;">Hotel</td> <td width="3%" style="padding-left:2px;">:</td> <td width="44%" style="padding-left:10px;"><?php echo $hotel_name; ?> </td> </tr> <tr valign="top" style="background-color:#414141; border-bottom:solid 1px #fff;"> <td width="53%" height="57" style="color:#fff; padding-left:10px; padding-left:10px; padding-top:10px;"> Address </td>