--- title: "Airline data for Hosted Payment Pages" url: "https://docs.adyen.com/online-payments/classic-integrations/hosted-payment-pages/hpp-payments-with-airline-data" source_url: "https://docs.adyen.com/online-payments/classic-integrations/hosted-payment-pages/hpp-payments-with-airline-data.md" canonical: "https://docs.adyen.com/online-payments/classic-integrations/hosted-payment-pages/hpp-payments-with-airline-data" last_modified: "2026-05-26T13:48:54+02:00" language: "en" --- # Airline data for Hosted Payment Pages [View source](/online-payments/classic-integrations/hosted-payment-pages/hpp-payments-with-airline-data.md) **Hosted Payment Pages are no longer available** To accept payments through an Adyen-hosted page, use our [Hosted Checkout](/online-payments/build-your-integration/sessions-flow?platform=Web\&integration=Hosted%2BCheckout). This page is for the classic Hosted Payment Pages (HPP) integration, which has reached end-of-life. We are no longer processing transactions though HPP. It is possible to provide airline and/or lodging information in your payment requests to our Hosted Payment Pages. If you are using the new SHA-256 HMAC signature calculation method, all you need to do is to simply include the relevant airline/lodging fields in the payment request (see code example below). If you want to submit different airline/lodging data in your captures and refunds for payments submitted via the HPP, you will need to do that via API. See [Airline Data](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/payments__reqParam_additionalData-AdditionalDataAirline-airline-passengername) for more information. ## Code example Below is a code example for submitting airline data in the authorisation via the Adyen Hosted Pages: HPP via travel data (PHP) ```php "SKINTEST-1435226439255", "merchantAccount" => $merchantAccount, "currencyCode" => "EUR", "paymentAmount" => "199", "sessionValidity" => "2015-12-25T10:31:06Z", "shipBeforeDate" => "2015-07-01", "shopperLocale" => "en_GB", "skinCode" => $skinCode, "brandCode" => "", "shopperEmail" => "test@adyen.com", "shopperReference" => "YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j", // Shopper information "shopper.FirstName"=> "Testperson-nl", "shopper.LastName"=> "Approved", "shopper.DateOfBirthDayOfMonth"=> "10", "shopper.DateOfBirthMonth"=> "07", "shopper.DateOfBirthYear"=> "1970", "shopper.Gender"=> "MALE", "shopper.TelephoneNumber"=> "0104691602", "shopper.IP"=> "62.128.7.69", // Billing Address fields (used for AVS checks) "billingAddress.street" =>"Neherkade", "billingAddress.houseNumberOrName" => "1", "billingAddress.city" => "Gravenhage", "billingAddress.postalCode" => "2521VA", "billingAddress.stateOrProvince" => "NH", "billingAddress.country" => "NL", // Delivery/Shipping Address fields "deliveryAddress.street" => "Neherkade", "deliveryAddress.houseNumberOrName" => "1", "deliveryAddress.city" => "Gravenhage", "deliveryAddress.postalCode" => "2521VA", "deliveryAddress.stateOrProvince" => "NH", "deliveryAddress.country" => "NL", "deliveryAddressType" => "", // Optional airline data lines. supports up to 4 legs and 10 passengers. "airline.passenger_name" => "Kate Winslet", "airline.ticket_number" => "XC123", "airline.airline_code" => "111", "airline.travel_agency_code" => "000000", "airline.travel_agency_name" => "UNKNOWN", "airline.customer_reference_number" => "******5837", "airline.ticket_issue_address" => "YREWX08AA", "airline.boarding_fee" => "12", "airline.airline_designator_code" => "AA", "airline.agency_plan_name" => "AA", "airline.agency_invoice_number" => "222", "airline.flight_date" => "2015-02-19 00:00", "airline.passenger1.first_name" => "Kate", "airline.passenger1.last_name" => "Winslet", "airline.passenger1.traveller_type" => "ADT", "airline.passenger1.phone_number" => "0031634323232", "airline.passenger1.date_of_birth" => "2011-04-31", "airline.leg1.depart_airport" => "HKG", "airline.leg1.flight_number" => "364", "airline.leg1.carrier_code" => "AA", "airline.leg1.fare_base_code" => "E", "airline.leg1.class_of_travel" => "E", "airline.leg1.stop_over_code" => "X", "airline.leg1.destination_code" => "AMS", "airline.leg1.date_of_travel" => "2015-02-19 00:00", "airline.leg1.depart_tax" => "396", // Optional lodging data lines "lodging.checkInDate" => "20150607", "lodging.checkOutDate" => "20150607", "lodging.folioNumber" => "1234", "lodging.specialProgramCode" => "1", "lodging.renterName"=>"Peter Pan", "lodging.numberOfRoomRates" => "2", "lodging.room1.rate"=>"1220", "lodging.room1.numberOfNights" => "4", "lodging.room2.rate"=>"1220", "lodging.room2.numberOfNights" => "2", ); /* process fields */ // The character escape function $escapeval = function($val) { return str_replace(':','\\:',str_replace('\\','\\\\',$val)); }; // Sort the array by key using SORT_STRING order ksort($params, SORT_STRING); // Generate the signing data string $signData = implode(":",array_map($escapeval,array_merge(array_keys($params), array_values($params)))); // base64-encode the binary result of the HMAC computation $merchantSig = base64_encode(hash_hmac('sha256',$signData,pack("H*" , $hmacKey),true)); $params["merchantSig"] = $merchantSig; ?> Adyen Payment
$value){ echo ' ' ."\n" ; } ?>
```