Initialize-Payment | Adding Airline Data

The following is a sample Initialize Payment request using airline data (AID):

<?xml version="[integer]" encoding="UTF-8"?> <root> <initialize-payment account="[integer]" client-id="[integer]"> <transaction order-no="[string]" type-id="[integer]"> <amount currency-id="[integer]" country-id="[integer]">40180</amount> <orders> <shipping-address> <name>name</name> <street>street</street> <street2>another street</street2> <city>city</city> <state>NY</state> <zip>411028</zip> <country>India</country> </shipping-address> <line-item> <product sku="PR-SAEF-11"> <name>single journey</name> <description>single journey</description><image-url>[image URL]> <airline-data order-type="TICKET" order-no="[string]"> <amount decimals="[integer]" currency-id="[integer]" currency="PHP" symbol="" format="" country-id="640">638500</amount> <fees> <fee format="" symbol="" currency="PHP" country-id="640" type-id="2">112300</fee> </fees> <trips> <trip seq="1" tag="1"> <service-level>Economy</service-level> <origin time-zone="+08:00" country-id="640" external-id="MNL" type-id="8">Manila</origin> <destination time-zone="+08:00" country-id="640" external-id="BCD" type-id="8">Bacolod</destination> <departure-time>2020-02-21 08:15:00</departure-time> <arrival-time>2020-02-21 09:35:00</arrival-time> <booking-class>H</booking-class> <transportation code=""> <vehicle type="[integer]" id="[integer]">321</vehicle> <carriers> <carrier type-id="1" code="PR"> <number>2131</number> </carrier> <carrier type-id="[integer]" code="PR"> <number>2131</number> </carrier> </carriers> </transportation> </trip> </trips> <profiles> <profile id="[integer]"> <title>MR</title> <first-name>test</first-name> <last-name>one</last-name> <type>ADULT</type> <amount decimals="2" currency-id="608" currency="[string]" symbol="" format="" country-id="640">638500</amount> <contact-info> <email>[email id]</email> <mobile country-id="[integer]">[phone number]</mobile> </contact-info> </profile> </profiles> <billing-summary> <fare-detail> <fare> <profile-seq>1</profile-seq> <description>adult</description> <currency>PHP</currency> <amount>60</amount> <product-code>ABF</product-code> <product-category>FARE</product-category> <product-item>Base fare for adult</product-item> </fare> </fare-detail> <add-ons> <add-on> <profile-seq>1</profile-seq> <trip-tag>2</trip-tag> <trip-seq>2</trip-seq> <description>adult</description> <currency>PHP</currency> <amount>60</amount> <product-code>ABF</product-code> <product-category>FARE</product-category> <product-item>Base fare for adult</product-item> </add-on> </add-ons> </billing-summary> </airline-data> </product> <amount>638500</amount> <points>200</points> <reward>1</reward> <quantity>1</quantity> <additional-data> <param name="deviceFingerPrint">12091201291</param> </additional-data> </line-item> </orders> <hmac>76f8682b42d0de9ad6948d1a8aef1744b939cd0570cd2c9749173b</hmac> <additional-data> <param name="merchant_payment_ref">12091201291</param> </additional-data> </transaction> <client-info language="en" platform="Android/9(28)" version="2.00" app-id="2"> <mobile country-id="[integer]">99065528</mobile> <email>[email id]</email> <device-id>c2f-60-45e-8f7-83a4</device-id> </client-info> </initialize-payment> </root>

Did this page help you?