If the user has been redirected to a separate payment application then the GetPaymentDetailsWithToken request is used to setup the payment page. Only the PreBookingDateStoreToken is required.Â
The structure of this XML will be the following
The response contains the necessary information for setting up the payment page.
The structure of this XML will be the following
Request
<GetPaymentDetailsWithTokenRequest>
<LoginDetails>
<Login>test</Login>
<Password>test</Password>
</LoginDetails>
<PreBookingStoreToken>[PreBookingStoreToken]</PreBookingStoreToken>
</GetPaymentDetailsWithTokenRequest>
Response
<GetPaymentDetailsWithTokenResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions/>
</ReturnStatus>
<LanguageID>10</LanguageID>
<SellingCurrencyID>9</SellingCurrencyID>
<TotalPrice>2094.66</TotalPrice>
<DueNowTotalPrice>1253.89</DueNowTotalPrice>
<TotalPaymentAmount>2094.67</TotalPaymentAmount>
<PaymentsDue>
<PaymentDue>
<Amount>280.26</Amount>
<DateDue>2014-05-27</DateDue>
</PaymentDue>
<PaymentDue>
<Amount>840.78</Amount>
<DateDue>2014-07-23</DateDue>
</PaymentDue>
<PaymentDue>
<Amount>973.62</Amount>
<DateDue>2014-05-27</DateDue>
</PaymentDue>
</PaymentsDue>
<CustomerDetails>
<LeadCustomer>
<CustomerTitle>Mr</CustomerTitle>
<CustomerFirstName>Adult</CustomerFirstName>
<CustomerLastName>One</CustomerLastName>
<DateOfBirth>1980-04-17</DateOfBirth>
<CustomerAddress1>Test</CustomerAddress1>
<CustomerAddress2>Test</CustomerAddress2>
<CustomerTownCity>Test</CustomerTownCity>
<CustomerCounty>Dorset</CustomerCounty>
<CustomerPostcode>Test</CustomerPostcode>
<CustomerBookingCountryID>6</CustomerBookingCountryID>
<CustomerPhone>1234567890</CustomerPhone>
<CustomerFax/>
<CustomerEmail>adult@one.com</CustomerEmail>
<CustomerPassportNumber/>
</LeadCustomer>
<GuestDetails>
<GuestDetail>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>Adult</FirstName>
<LastName>One</LastName>
<Age>34</Age>
<DateOfBirth>1980-04-17</DateOfBirth>
</GuestDetail>
<GuestDetail>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>Adult</FirstName>
<LastName>Two</LastName>
<Age>35</Age>
<DateOfBirth>1978-06-13T00:00:00</DateOfBirth>
<NationalityID>0</NationalityID>
</GuestDetail>
</GuestDetails>
</CustomerDetails>
<CreditCardOptions>
<CreditCardOption>
<CreditCardTypeID>10</CreditCardTypeID>
<CreditCardType>American Express</CreditCardType>
<AirlineSurcharge>0.00</AirlineSurcharge>
<CustomerDepositAmount>1253.88</CustomerDepositAmount>
<CustomerDepsositSurcharge>0.00</CustomerDepsositSurcharge>
<CustomerDepositTotal>1253.88</CustomerDepositTotal>
<SystemDepositAmount>1253.88</SystemDepositAmount>
<SystemDepsositSurcharge>0.00</SystemDepsositSurcharge>
<SystemDepositTotal>1253.88</SystemDepositTotal>
<CustomerAmount>2094.66</CustomerAmount>
<CustomerSurcharge>0.00</CustomerSurcharge>
<CustomerTotal>2094.66</CustomerTotal>
<SystemAmount>2094.66</SystemAmount>
<SystemSurcharge>0.00</SystemSurcharge>
<SystemTotal>2094.66</SystemTotal>
</CreditCardOption>
<CreditCardOption>
<CreditCardTypeID>2</CreditCardTypeID>
<CreditCardType>MasterCard</CreditCardType>
<AirlineSurcharge>0.00</AirlineSurcharge>
<CustomerDepositAmount>1253.88</CustomerDepositAmount>
<CustomerDepsositSurcharge>0.00</CustomerDepsositSurcharge>
<CustomerDepositTotal>1253.88</CustomerDepositTotal>
<SystemDepositAmount>1253.88</SystemDepositAmount>
<SystemDepsositSurcharge>0.00</SystemDepsositSurcharge>
<SystemDepositTotal>1253.88</SystemDepositTotal>
<CustomerAmount>2094.66</CustomerAmount>
<CustomerSurcharge>0.00</CustomerSurcharge>
<CustomerTotal>2094.66</CustomerTotal>
<SystemAmount>2094.66</SystemAmount>
<SystemSurcharge>0.00</SystemSurcharge>
<SystemTotal>2094.66</SystemTotal>
</CreditCardOption>
<CreditCardOption>
<CreditCardTypeID>12</CreditCardTypeID>
<CreditCardType>MasterCard Debit</CreditCardType>
<AirlineSurcharge>0.00</AirlineSurcharge>
<CustomerDepositAmount>1253.88</CustomerDepositAmount>
<CustomerDepsositSurcharge>0.00</CustomerDepsositSurcharge>
<CustomerDepositTotal>1253.88</CustomerDepositTotal>
<SystemDepositAmount>1253.88</SystemDepositAmount>
<SystemDepsositSurcharge>0.00</SystemDepsositSurcharge>
<SystemDepositTotal>1253.88</SystemDepositTotal>
<CustomerAmount>2094.66</CustomerAmount>
<CustomerSurcharge>0.00</CustomerSurcharge>
<CustomerTotal>2094.66</CustomerTotal>
<SystemAmount>2094.66</SystemAmount>
<SystemSurcharge>0.00</SystemSurcharge>
<SystemTotal>2094.66</SystemTotal>
</CreditCardOption>
<CreditCardOption>
<CreditCardTypeID>1</CreditCardTypeID>
<CreditCardType>Visa Credit</CreditCardType>
<AirlineSurcharge>0.00</AirlineSurcharge>
<CustomerDepositAmount>1253.88</CustomerDepositAmount>
<CustomerDepsositSurcharge>0.00</CustomerDepsositSurcharge>
<CustomerDepositTotal>1253.88</CustomerDepositTotal>
<SystemDepositAmount>1253.88</SystemDepositAmount>
<SystemDepsositSurcharge>0.00</SystemDepsositSurcharge>
<SystemDepositTotal>1253.88</SystemDepositTotal>
<CustomerAmount>2094.66</CustomerAmount>
<CustomerSurcharge>0.00</CustomerSurcharge>
<CustomerTotal>2094.66</CustomerTotal>
<SystemAmount>2094.66</SystemAmount>
<SystemSurcharge>0.00</SystemSurcharge>
<SystemTotal>2094.66</SystemTotal>
</CreditCardOption>
<CreditCardOption>
<CreditCardTypeID>3</CreditCardTypeID>
<CreditCardType>Visa Debit</CreditCardType>
<AirlineSurcharge>0.00</AirlineSurcharge>
<CustomerDepositAmount>1253.88</CustomerDepositAmount>
<CustomerDepsositSurcharge>0.00</CustomerDepsositSurcharge>
<CustomerDepositTotal>1253.88</CustomerDepositTotal>
<SystemDepositAmount>1253.88</SystemDepositAmount>
<SystemDepsositSurcharge>0.00</SystemDepsositSurcharge>
<SystemDepositTotal>1253.88</SystemDepositTotal>
<CustomerAmount>2094.66</CustomerAmount>
<CustomerSurcharge>0.00</CustomerSurcharge>
<CustomerTotal>2094.66</CustomerTotal>
<SystemAmount>2094.66</SystemAmount>
<SystemSurcharge>0.00</SystemSurcharge>
<SystemTotal>2094.66</SystemTotal>
</CreditCardOption>
</CreditCardOptions>
<BookingInformationDef>
<BookingInformation>
<TermsAndConditions>Test terms and conditions</TermsAndConditions>
<Errata/>
</BookingInformation>
<BookingInformation>
<TermsAndConditions>Test terms and conditions</TermsAndConditions>
<Errata/>
</BookingInformation>
</BookingInformationDef>
</GetPaymentDetailsWithTokenResponse>