function getReservationDetails($reservationData, $roomsInfo, $extraOptionsInfo, $excursionsInfo, $taxes, $guestDetails, $currency, $costData) { ob_start(); ?> <table class="reservation_details" cellspacing="0" cellpadding="0" border="0" width="100%" style="border: 1px solid rgb(190, 188, 183); background: none repeat scroll 0% 0% rgb(248, 247, 245);border-collapse: separate;"> <thead> <tr bgcolor="#C7D9E7" class='rsv_dtls_main_header'> <th colspan="7" align="left" style="padding: 3px 9px;"> <!--micod--> <strong><?php //echo JText::_('LNG_RESERVATION_DETAILS',true); ?> Detalles de la Pre-reserva</strong> </th> </tr> </thead> <tbody class='rsv_dtls_container'> <?php if (isset($reservationData->hotel->hotel_id) && $reservationData->hotel->hotel_id > 0) { ?> <tr bgcolor="#F8F7F5" class='rsv_dtls_hotel_container'> <td style="padding: 3px 9px;" colspan="10"> <table> <tr> <td> <div style=" -moz-box-shadow: 0 2px 5px #969696; -webkit-box-shadow: 0px 2px 5px #969696; box-shadow: 0px 2px 5px #969696; float: left; padding: 2px;background-color: #FFFFFF;"> <img height="70" style="height: 70px;border: medium none; float: left;" src="<?php echo isset($reservationData->hotel->pictures[0]) ? JURI::root() . PATH_PICTURES . $reservationData->hotel->pictures[0]->hotel_picture_path : ""; ?> " alt="Hotel Image" /> </div> </td> <td style="padding-left: 10px;"> <span style="float: left;font-size: 15px !important; font-weight: bold; line-height: 24px; margin: 0;"><?php echo $reservationData->hotel->hotel_name; ?> </span> <span style=" float: left; margin-left: 10px; margin-top: 3px;"> <?php for ($i = 1; $i <= $reservationData->hotel->hotel_stars; $i++) { ?> <img src='<?php echo JURI::root() . "administrator/components/" . getBookingExtName() . "/assets/img/star.png"; ?> ' /> <?php } ?> </span> <br> <div class="hotel-address" style="display: inline-block; font-size: 11px; margin-bottom: 5px; width: 100%;"> <?php echo $reservationData->hotel->hotel_address; ?> , <?php echo isset($reservationData->hotel->hotel_zipcode) ? $reservationData->hotel->hotel_zipcode . ", " : ""; ?> <?php echo $reservationData->hotel->hotel_city; ?> , <?php echo $reservationData->hotel->hotel_county; ?> , <?php echo $reservationData->hotel->country_name; ?> </div> <span class="hotel-address" style="display: inline-block; font-size: 11px;"><?php echo JText::_('LNG_TELEPHONE_NUMBER', true) . ' ' . $reservationData->hotel->hotel_phone; ?> </span> </td> </tr> </table> </td> </tr> <tr bgcolor="#D9E5EE" class='rsv_dtls_header'> <td colspan="6" align="left" style="padding: 3px 9px;"> </td> <td align="right" style="padding: 3px 9px;"> </td> </tr><?php } ?> <!--micod--> <!--Lugar de la vista de la cotización donde se muestra la hora de llegada, de salida, número de habitaciones y los huespedes--> <tr bgcolor="#F8F7F5" class='rsv_dtls_hotel_container'> <td style="padding: 3px 9px 3px 0;" colspan="10"> <table> <?php if (isset($reservationData->userData->confirmation_id) && $reservationData->userData->confirmation_id > 0) { ?> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_ID_RESERVATION', true); ?> </strong> </td> <td style="padding: 3px 9px;" colspan="4" align="left"> <span class='title_ID'><?php echo JHotelUtil::getStringIDConfirmation($reservationData->userData->confirmation_id); ?> </span> </td> </tr> <?php } ?> <?php if ($reservationData->userData->rooms && count($roomsInfo) > 0) { ?> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_ARIVAL'); ?> </strong> </td> <td align="left" style="padding: 3px 9px;"> <?php echo JHotelUtil::getDateGeneralFormat($reservationData->userData->start_date); ?> (<?php echo JText::_('LNG_CHECK_IN'); ?> <?php echo $reservationData->hotel->informations->check_in; ?> ) </td> </tr> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_DEPARTURE'); ?> </strong> </td> <td align="left" style="padding: 3px 9px;"> <?php echo JHotelUtil::getDateGeneralFormat($reservationData->userData->end_date); ?> (<?php echo JText::_('LNG_CHECK_OUT'); ?> <?php echo $reservationData->hotel->informations->check_out; ?> ) </td> </tr> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo isset($reservationData->hotel->types) && $reservationData->hotel->types[0]->id == PARK_TYPE_ID ? JText::_('LNG_NUMBER_OF_PARKS', true) : JText::_('LNG_NUMBER_OF_ROOMS', true); ?> </strong> </td> <td align="left" style="padding: 3px 9px;"> <?php echo $reservationData->userData->rooms > 0 ? $reservationData->userData->rooms . ' ' . ($reservationData->userData->rooms > 1 ? strtolower(isset($reservationData->hotel->types) && $reservationData->hotel->types[0]->id == PARK_TYPE_ID ? JText::_('LNG_PARKS', true) : JText::_('LNG_ROOMS', true)) : strtolower(isset($reservationData->hotel->types) && $reservationData->hotel->types[0]->id == PARK_TYPE_ID ? JText::_('LNG_PARK', true) : JText::_('LNG_ROOM', true))) : ""; ?> </td> </tr> <?php /* Precio del adulot y niño en la cotización, hay que ponerlo en cada habitación Recordar también que éste dato lo recibe del día de partida que el cliente escogió. Hay hoteles que tiene costes distintos por día y por temporada... ?> <!--micod--> <!--Precio total por adulto en la cotización--> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php //echo JText::_('LNG_GUESTS'); ?> Precio por adulto</strong> </td> <td align="left" valign="top" style="padding: 3px 9px;"> <?php echo $_SESSION["adult_price"]." ".$currency->symbol; ?> </td> </tr> <!--micod--> <!--Precio total por niño en la cotización--> <?php if ($reservationData->userData->total_children!=0) { ?> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php //echo JText::_('LNG_GUESTS'); ?> Precio por niño</strong> </td> <td align="left" valign="top" style="padding: 3px 9px;"> <?php echo $_SESSION["child_price"]." ".$currency->symbol; ?> </td> </tr> <?php } */ ?> <!--Total de Huespedes--> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_GUESTS'); ?> </strong> </td> <td align="left" valign="top" style="padding: 3px 9px;"> <?php echo $reservationData->userData->total_adults > 0 ? $reservationData->userData->total_adults . ' ' . JText::_('LNG_ADULT_S', true) : ""; ?> <?php if (isset($reservationData->userData->total_children)) { echo $reservationData->userData->total_children > 0 ? $reservationData->userData->total_children . ' ' . JText::_('LNG_CHILD_S', true) : ""; } ?> </td> </tr> <?php } ?> <?php if (!empty($reservationData->userData->remarks) || !empty($reservationData->userData->discount_code)) { ?> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_REMARKS'); ?> </strong> </td> <td align="left" valign="top" style="padding: 3px 9px;"> <?php echo $reservationData->userData->remarks; ?> <br/> <?php if (!empty($reservationData->userData->discount_code)) { echo JText::_('LNG_DISCOUNT_CODE') . " " . $reservationData->userData->discount_code; } ?> </td> </tr> <?php } ?> <?php if (isset($guestDetails) && count($guestDetails) > 0) { ?> <tr> <td align="left" valign="top" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_GUEST_DETAILS'); ?> </strong> </td> <td> <table> <tr> <td style="padding: 3px 9px;"> <?php echo JText::_('LNG_FIRST_NAME'); ?> </td> <td style="padding: 3px 9px;"> <?php echo JText::_('LNG_LAST_NAME'); ?> </td> <td style="padding: 3px 9px;"> <?php echo JText::_('LNG_PASSPORT_NATIONAL_ID', true); ?> </td> </tr> <?php foreach ($guestDetails as $guestDetail) { ?> <tr> <td style="padding: 3px 9px;"> <?php echo $guestDetail->first_name; ?> </td> <td style="padding: 3px 9px;"> <?php echo $guestDetail->last_name; ?> </td> <td style="padding: 3px 9px;"> <?php echo $guestDetail->identification_number; ?> </td> </tr> <?php } ?> </table> </td> </tr> <?php } ?> </table> </td> </tr> <tr bgcolor="#D9E5EE" class='rsv_dtls_header'> <td colspan="6" align="left" style="padding: 3px 9px;"><?php echo JText::_('LNG_ITEM', true); ?> </td> <td align="right" style="padding: 3px 9px;"><?php echo JText::_('LNG_SUBTOTAL', true); ?> </td> </tr> <!--room details --> <?php //dmp($roomsInfo); //dmp($extraOptionsInfo); $reservationPrice = 0; foreach ($roomsInfo as $key => $roomInfo) { $subtotalRooms = 0; if ($roomInfo->roomPrice != 0) { echo $roomInfo->roomDescription; } $subtotalRooms += $roomInfo->roomPrice; if (isset($extraOptionsInfo[$key])) { echo $extraOptionsInfo[$key]->description; $subtotalRooms += $extraOptionsInfo[$key]->extraOptionsAmount; } $reservationPrice += $subtotalRooms; /*echo "<pre>"; var_dump($reservationPrice); echo "</pre>";*/ ?> <?php if ($subtotalRooms != 0) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9" > <td colspan=6 align="right"> <strong><?php echo JText::_('LNG_ESTIMATED_SUBTOTAL'); ?> (<?php echo $currency->symbol; ?> )</strong> </td> <td align=right style="padding: 3px 9px;"> <strong><?php echo JHotelUtil::fmt($subtotalRooms, 2); ?> </strong> </td> </tr> <?php } ?> <?php } //display courses/excursions if (is_array($excursionsInfo)) { foreach ($excursionsInfo as $key => $excursionInfo) { $subtotalExcursions = 0; echo $excursionInfo->excursionDescription; $subtotalExcursions += $excursionInfo->excursionPrice; $reservationPrice += $subtotalExcursions; ?> <?php if ($subtotalExcursions > 0) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9" > <td colspan=6 align="right"> <strong><?php if ($subtotalExcursions > 0) { echo JText::_('LNG_ESTIMATED_SUBTOTAL'); } ?> (<?php echo $currency->symbol; ?> )</strong> </td> <td align=right style="padding: 3px 9px;"> <strong><?php echo JHotelUtil::fmt($subtotalExcursions, 2); ?> </strong> </td> </tr> <?php } } } ?> <tr class='rsv_dtls_total_room_price' bgcolor="#EFEDE9"> <td align="right" colspan="6" style="border-top:solid 2px gray;padding: 3px 9px;"> <strong><?php echo JText::_('LNG_TOTAL_ROOMS_RATES'); ?> (<?php echo $currency->symbol; ?> )</strong> </td> <td align="right" style="border-top:solid 2px gray;padding: 3px 9px"> <strong><?php echo JHotelUtil::fmt($reservationPrice); ?> </strong> </td> </tr> <?php $val_taxes = 0; foreach ($taxes as $tax) { if ($tax->tax_type == 'Fixed') { $val_taxes = $tax->tax_value; } else { $val_taxes = $tax->tax_value * $reservationPrice / 100; } if ($val_taxes == 0) { continue; } ?> <tr> <td colspan=6 align="right" style="padding: 3px 9px;"> <?php echo $tax->tax_name; ?> (<?php echo $tax->tax_value . ' ' . ($tax->tax_type == 'Fixed' ? $currency->symbol : ' % '); ?> ) </td> <td align="right" style="padding: 3px 9px;"> <?php echo JHotelUtil::fmt($val_taxes); ?> </td> </tr> <?php $reservationPrice += $val_taxes; } ?> <?php if ($reservationData->appSettings->charge_only_reservation_cost) { $costData->bIsCostV = true; } if ($costData->bIsCostV) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9"> <td colspan=6 align="right"><strong><?php echo JText::_('LNG_COST_VALUE', true); ?> (<?php echo $currency->symbol; ?> )</strong> </td> <td align=right style="padding: 3px 9px;"><strong><?php echo JHotelUtil::fmt($costData->costV, 2); ?> </strong> </td> </tr> <?php } if ($costData->bIsCostV) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9"> <td colspan=6 align="right"><strong><?php echo JText::_('LNG_ESTIMATED_TOTAL'); ?> (<?php echo $currency->symbol; ?> )</strong> </td> <td align=right style="padding: 3px 9px;"><strong><?php echo JHotelUtil::fmt($reservationPrice + $costData->costV, 2); ?> </strong> </td> </tr> <?php } $total_cost = 0; //dmp($this->tip_oper); // dmp($arr_val_amount_to_pay ); //micod //EL IMPORTE A PAGAR!!! /*if( $reservationData->userData->totalPaid == 0 ) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9"> <td colspan=6 align="right"> <strong> <?php echo JText::_('LNG_AMOUNT_PAY',true)?> <?php if($costData->costV > 0 ) echo "(".JText::_('LNG_COST_VALUE',true); if($costData->costV > 0 && $costData->percent > 0 ) echo ' + '; if($costData->percent > 0 ) echo $costData->percent.'% '.JText::_('LNG_ESTIMATED_SUBTOTAL',true); if($costData->costV > 0 ) echo ")"; ?> (<?php echo $currency->symbol?>) </strong> </td> <td align=right style="padding: 3px 9px;"> <?php if($costData->bIsCostV || $costData->bIsCostP){ ?> <strong><?php echo JHotelUtil::fmt(($costData->costV + $costData->percent * $reservationPrice /100),2)?> </strong> <?php }else{?> <strong><?php echo JHotelUtil::fmt($reservationPrice, 2)?></strong> <?php } ?> </td> </tr> <?php }*/ $total_cost += $costData->costV + $costData->percent * $reservationPrice / 100; $reservationPrice = $reservationPrice + $costData->costV; /* if($costData->bIsCostV || $costData->bIsCostP){ ?> <tr class='rsv_dtls_total_price' bgcolor="#dee5e8" style='border-top:solid 3px black'> <td align="right" colspan="6" style="padding: 3px 9px;"> <strong><?php echo JText::_('LNG_GRAND_TOTAL',true)?> (<?php echo$currency->name?>)</strong> </td> <td align="right" style="padding: 3px 9px;"> <strong><?php echo JHotelUtil::fmt($reservationPrice)?></strong> </td> </tr> <?php ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9"> <td colspan=6 align="right"> <strong><?php echo JText::_('LNG_COST_TOTAL',true)?> (<?php echo $currency->name?>) </strong> </td> <td align=right style="padding: 3px 9px;"> <strong><?php echo JHotelUtil::fmt( $total_cost,2)?></strong> </td> </tr> <?php }*/ //micod //PAGO RESTANTE DESPUÉS DEL IMPORTE A PAGAR!!!!!!!!!!! /*if( $reservationData->userData->totalPaid >0 ) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9"> <td colspan=6 align="right"><strong><?php echo JText::_('LNG_TOTAL_PAID',true)?> (<?php echo $currency->symbol?>) <?php echo isset($reservationData->userData->payment_method)?' - '.strtoupper($reservationData->userData->payment_method):'' ?></strong> </td> <td align=right style="padding: 3px 9px;"><strong><?php echo JHotelUtil::fmt( $reservationData->userData->totalPaid,2)?> </strong> </td> </tr> <?php } if( $total_cost > 0 || $reservationData->userData->totalPaid > 0) { ?> <tr class='rsv_dtls_subtotal' bgcolor="#EFEDE9"> <td colspan=6 align="right"> <strong><?php echo isset($reservationData->hotel->types) && $reservationData->hotel->types[0]->id == PARK_TYPE_ID ?JText::_('LNG_REMAINING_PARK_PAY',true) : JText::_('LNG_REMAINING_PAY',true)?> (<?php echo $currency->symbol?>) </strong> </td> <td align=right style="padding: 3px 9px;"> <?php if ($reservationData->userData->totalPaid == 0 ){?> <strong><?php echo JHotelUtil::fmt($reservationPrice - $total_cost,2)?></strong> <?php }else{?> <strong><?php echo JHotelUtil::fmt($reservationPrice -$reservationData->userData->totalPaid,2)?></strong> <?php }?> </td> </tr> <?php } */ ?> </table> <?php $reservationInfo = ob_get_contents(); ob_end_clean(); $reservationDetails = new stdClass(); $reservationDetails->total = $reservationPrice; $reservationDetails->cost = $total_cost; $reservationDetails->reservationInfo = $reservationInfo; return $reservationDetails; }
<?php echo JHtml::_('grid.id', $i, $item->confirmation_id); ?> </td> <td class="center"> <a href='<?php echo JRoute::_('index.php?option=com_jhotelreservation&task=reservation.edit&reservationId=' . $item->confirmation_id); ?> ' title="<?php echo JText::_('LNG_CLICK_TO_EDIT', true); ?> "> <?php echo JHotelUtil::getStringIDConfirmation($item->confirmation_id); ?> </a> </td> <td class="center" width="1%"> <?php echo $item->first_name . ' ' . $item->last_name; ?> </td> <td class="center" width="1%"> <?php echo stripslashes($item->hotel_name); ?> </td> <td class="center">
function displayTableRow($room, $row) { //dmp("R: ". $row); $startDate = $this->state->get('filter.start_date'); $endDate = $this->state->get('filter.end_date'); echo "<td class='td_color_fundal_1'></td>"; for ($d = strtotime($startDate); $d <= strtotime($endDate);) { $dayString = date('d-m-Y', $d); $class = ""; if ($d == strtotime(date('d-m-Y') . ' -1 day')) { $class = 'td_color_fundal_crt_day_1'; } else { $class = 'td_color_fundal_1'; } $class2 = ""; if ($d == strtotime(date('d-m-Y'))) { $class2 = 'td_color_fundal_crt_day_2'; } else { $class2 = 'td_color_fundal_2'; } $showBooking = false; if (isset($this->availabilityReport[$room->room_id])) { foreach ($this->availabilityReport[$room->room_id][$row] as $booking) { if (strtotime($booking->start_date) < strtotime($startDate)) { $booking->start_date = $startDate; } if (strtotime($booking->start_date) == $d) { $stayPeriod = JHotelUtil::getNumberOfDays($booking->start_date, $booking->end_date); $colSpan = $stayPeriod * 2; echo "<td class='td_color_fundal_1' colspan='{$colSpan}'>"; echo "\t<div class='reseravation_box reserved_details_" . strtolower(str_replace(' ', '_', $booking->status_reservation_name)) . "'>" . "<a class='client' href='#dialog_" . $booking->confirmation_id . "' name='modal'>" . $booking->last_name . ' ' . $booking->first_name . "</a>" . "</div>" . "<div id='dialog_" . $booking->confirmation_id . "' class='window'>" . "<div class='info'>" . "<SPAN class='title_ID'>" . JText::_('LNG_RESERVATION', true) . ' : ' . JHotelUtil::getStringIDConfirmation($booking->confirmation_id) . "</SPAN>" . " <input type='button' value='Close it' class='close'/>" . $booking->confirmation_details . "</div>" . "</div>"; echo "</td>"; $showBooking = true; $d = strtotime(date('d-m-Y', $d) . ' + ' . $stayPeriod . ' day '); break; } } //echo "<td class='td_color_fundal_1'></td>"; } if (!$showBooking) { echo "<td class='{$class2}'></td>"; if ($d != strtotime($endDate)) { echo "<td class='{$class}'></td>"; } } else { continue; } $d = strtotime(date('d-m-Y', $d) . ' + 1 day '); } }
function prepareInvoiceEmail($reservationDetails, $emailTemplate) { $datas = JHotelUtil::getDateGeneralFormat($reservationDetails->reservationData->userData->start_date); $datae = JHotelUtil::getDateGeneralFormat($reservationDetails->reservationData->userData->end_date); $companyLogo = "<img src=\"" . JURI::root() . PATH_PICTURES . $reservationDetails->reservationData->appSettings->logo_path . "\" alt=\"Company logo\" />"; $currentDate = JHotelUtil::getDateGeneralFormat(date("Y-m-d H:i:s")); $chekInTime = $reservationDetails->reservationData->hotel->informations->check_in; $chekOutTime = $reservationDetails->reservationData->hotel->informations->check_out; $hotelName = $reservationDetails->reservationData->hotel->hotel_name; $cancellationPolicy = $reservationDetails->reservationData->hotel->informations->cancellation_conditions; $touristTax = $reservationDetails->reservationData->hotel->informations->city_tax_percent == 1 ? $reservationDetails->reservationData->hotel->informations->city_tax + '% ' : JHotelUtil::fmt($reservationDetails->reservationData->hotel->informations->city_tax, 2); $emailTemplate = str_replace(EMAIL_COMPANY_LOGO, $companyLogo, $emailTemplate); $gender = JText::_("LNG_EMAIL_GUEST_TYPE_" . $reservationDetails->reservationData->userData->guest_type, true); $emailTemplate = str_replace(EMAIL_RESERVATIONGENDER, $gender, $emailTemplate); $emailTemplate = str_replace(EMAIL_RESERVATIONFIRSTNAME, $reservationDetails->reservationData->userData->first_name, $emailTemplate); $emailTemplate = str_replace(EMAIL_RESERVATIONLASTNAME, $reservationDetails->reservationData->userData->last_name, $emailTemplate); $emailTemplate = str_replace(EMAIL_START_DATE, $datas, $emailTemplate); $emailTemplate = str_replace(EMAIL_END_DATE, $datae, $emailTemplate); $emailTemplate = str_replace(EMAIL_CURRENT_DATE, $currentDate, $emailTemplate); $emailTemplate = str_replace(EMAIL_RESERVATION_ID, JHotelUtil::getStringIDConfirmation($reservationDetails->confirmation_id), $emailTemplate); $emailTemplate = str_replace(EMAIL_RESERVATIONDETAILS, $reservationDetails->reservationInfo, $emailTemplate); $emailTemplate = str_replace(EMAIL_BILINGINFORMATIONS, $reservationDetails->billingInformation, $emailTemplate); $emailTemplate = str_replace(EMAIL_PAYMENT_METHOD, $reservationDetails->paymentInformation, $emailTemplate); $emailTemplate = str_replace(EMAIL_HOTEL_CANCELATION_POLICY, $cancellationPolicy, $emailTemplate); $emailTemplate = str_replace(EMAIL_HOTEL_NAME, $hotelName, $emailTemplate); $emailText = ""; $fromName = $reservationDetails->reservationData->appSettings->company_name; $emailTemplate = str_replace(EMAIL_COMPANY_NAME, $fromName, $emailTemplate); return $emailTemplate; }
public function processTransaction($data) { $this->normalReturnUrl = JRoute::_('index.php?option=com_jhotelreservation&task=paymentoptions.processResponse&processor=buckaroo', false, -1); $this->amount = $data->cost > 0 ? $data->cost : $data->total; $this->itemName = $data->reservationData->hotel->hotel_name . " Reservation from " . $data->reservationData->userData->start_date . ' to ' . $data->reservationData->userData->end_date; $this->itemNumber = $data->confirmation_id; $this->setInvoiceNumber(JHotelUtil::getStringIDConfirmation($data->confirmation_id)); $this->setCurrencyCode($data->reservationData->hotel->hotel_currency); $this->setCulture('nl-NL'); $result = new stdClass(); $result->transaction_id = 0; $result->amount = $data->cost > 0 ? $data->cost : $data->total; $result->payment_date = date("Y-m-d"); $result->response_code = 0; $result->confirmation_id = $data->confirmation_id; $result->currency = $data->reservationData->hotel->hotel_currency; $result->processor_type = $this->type; $result->status = PAYMENT_REDIRECT; $result->payment_status = PAYMENT_STATUS_PENDING; return $result; }