Paying with account

For suppliers that support account based payment (e.g BSP Cash) your FAB_BasketRQ/BookBasketRequest would look similar to this:

<?xml version="1.0" encoding="UTF-8"?>
<FAB_BasketRQ Target="test" Version="2002A" xmlns="http://www.xmltravel.com/fab/2002/09">
  <SyndicatorInfo SyndicatorId="ExampleSyndicatorId" SyndicatorPassword="xxxxxxxx"/>
  <SessionInfo FABSessionId="H2P9exxxxiCaAaRqEZw9OQlg" CreateNewSession="false"/>
  <BookBasketRequest BasketId="B1WnxxxxBdIZAWqJGbrufG" ResponseTimeoutSecs="120" TotalCost="194.74">
    <Payment PaymentMode="syndicator_deferred"/>
  </BookBasketRequest>
</FAB_BasketRQ>

Note that:

  • No PaymentCard is provided
  • PaymentMode is set to syndicator_deferred
    • This tells FAB to attempt to automatically handle payment. FAB then detects that the supplier requires account payment so uses that over e.g Pax2Pay.
      • If FAB instead detects that the supplier requires card payment it will fail unless Pax2Pay has been setup.
  • We know that account based payment is supported for all components of the basket because the following attribute is missing/false in the preceding FAB_BasketRS
    • CurrentBasket/Itinerary/ItineraryCost/Component[*]HostSystemRequiresPaymentCard

Last modified November 30, 2022