This call is to make a payment on a particular booking and must include a booking reference and payment details. There are four different types of payment:
CreditCard
OFP Deferred Payment
Custom With Make Payment
Custom
The first three payment types can be used by entering these values in the PaymentType field in the request. Any other text in this field will be treated as the fourth type of payment, a custom payment.
The other fields in the request may be required depending on which of these four types of payment is being made.
The structure of the XML will be:
The response includes a return status and the remaining balance on the booking after the payment has been made. If the payment was unsuccessful, the return status will include a list of exceptions encountered when attempting to make payment.
The structure of the XML will be:
<MakePaymentRequest>
<LoginDetails>
<Login>test</Login>
<Password>test</Password>
<AgentReference />
<SellingCurrencyID>0</SellingCurrencyID>
<LanguageID>0</LanguageID>
<TrackingAffiliateID>0</TrackingAffiliateID>
<BrandID>0</BrandID>
<BookingSourceID>0</BookingSourceID>
<SalesChannelID>0</SalesChannelID>
<TradeID>0</TradeID>
<SellingCountryID>0</SellingCountryID>
<CurrencyID>0</CurrencyID>
<ItineraryInformation>false</ItineraryInformation>
</LoginDetails>
<BookingReference>1009414</BookingReference>
<Payment>
<PaymentType>CreditCard</PaymentType>
<CCCardHoldersName>Test Test</CCCardHoldersName>
<CCCardTypeID>4</CCCardTypeID>
<CCCardNumber>8388888888</CCCardNumber>
<CCStartMonth />
<CCStartYear />
<CCExpireMonth>05</CCExpireMonth>
<CCExpireYear>2022</CCExpireYear>
<CCSecurityCode />
<CCIssueNumber>0</CCIssueNumber>
<TransactionID />
<Amount>453.10</Amount>
<Surcharge>0</Surcharge>
<TotalAmount>453.10</TotalAmount>
<ThreeDSecureCode />
<PaymentToken />
<PreAuthorisationOnly>false</PreAuthorisationOnly>
<OffsitePaymentTypeID>0</OffsitePaymentTypeID>
<CCCardToken />
<BasketReference />
<OverridePaymentCurrency>false</OverridePaymentCurrency>
<OverridePaymentCurrencyID>0</OverridePaymentCurrencyID>
<OverrideExchangeRate>0</OverrideExchangeRate>
<OverridePaymentAmount>0</OverridePaymentAmount>
<EncryptedCardDetails />
<UseEncryptedCardDetails>false</UseEncryptedCardDetails>
</Payment>
</MakePaymentRequest>
<MakePaymentResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<BookingBalance>546.10</BookingBalance>
</MakePaymentResponse>