Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

Payment testing #237

Closed evgenTraytyak closed 5 years ago

evgenTraytyak commented 7 years ago

Can someone provide me test credit card to test HotelCreateReservationRequest with the next credit card fields:

xml.Guarantee('xmlns' => xmlns_common, 'Type' => 'Guarantee') do
   xml.CreditCard('CVV' => card['cvv'], 'ExpDate' => card['expiration_date'], 'Number' => card['number'], 'Name' => card['name'])
end
vivekjyotipramanik commented 7 years ago

Hi evgenTraytyak,

We would not be provide any Test Credit Card and you have to setup your own credit card for testing. Thanks.

Thanks & Regards Vivekjyoti Pramanik

oldmonk7 commented 7 years ago

Hi @vivekjyotipramanik,

I am trying to create a reservation in Sandbox using Credit Card as Payment. I am able to book(as I was able to without even providing payment info, since it is sandbox I believe). But I get the following warning.

<AirCreateReservationRsp TraceId="" TransactionId="CA24B2600A07647777AC8706FBBDFDCA" ResponseTime="1713" xmlns:universal="http://www.travelport.com/schema/universal_v36_0" xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0" xmlns:air="http://www.travelport.com/schema/air_v36_0">
            <ResponseMessage Code="0" Type="Warning" ProviderCode="1V">
                Some of the requested AirPricingInfos could not be saved for the requested provider.
            </ResponseMessage>
            <ResponseMessage Code="3715" Type="Warning" ProviderCode="1V">
                Host only allows one Address/Delivery Address. Only one sent in request.
            </ResponseMessage>
            <ResponseMessage Code="0" Type="Warning" ProviderCode="1V">
                Indicates FOP application failed: INVLD FRMT/NOT ENT/F-VI4562456245624562/D1219-SHA.GARG
            </ResponseMessage>
            <ResponseMessage Code="0" Type="Warning" ProviderCode="1V">
                0020 : NK  NOT AUTHORIZED FOR VALIDATION
            </ResponseMessage>

Is this because Sandbox doesn't support Credit card validation or is it failing because the card details are not real?

How do you suggest to test payments in Sandbox?

I just need to store the payment info to the PNR, so that the same payment details can be picked up during ticketing.

Thanks!

vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

Could you please provide the request xml that you are using. Thanks.

oldmonk7 commented 7 years ago

Thanks @vivekjyotipramanik

Here is the XML

Request XML:  <!--AirCreateReservationReq-->
<!--Release 8.1-->
<!--Version Dated as of 15/Apr/2015 11:24:07-->
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:univ="http://www.travelport.com/schema/universal_v36_0">
        <univ:SupportedVersions airVersion="air_v36_0"/>
    </soap:Header>
    <soap:Body>
        <univ:AirCreateReservationReq AuthorizedBy="user" RuleName="SIP" RetainReservation="Both" TargetBranch="P105142" TraceId="" xmlns:univ="http://www.travelport.com/schema/universal_v36_0"  xmlns:com="http://www.travelport.com/schema/common_v36_0" xmlns:air="http://www.travelport.com/schema/air_v36_0" xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0">
            <com:BillingPointOfSaleInfo OriginApplication="uAPI" />
            <com:BookingTraveler Key="P_0" Age="117" DOB="1900-01-01" Gender="M" TravelerType="ADT">
                <com:BookingTravelerName First="SHA" Last="GARG" />
                <com:DeliveryInfo>
                    <com:ShippingAddress>
                        <com:AddressName>SHA GARG</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:ShippingAddress>
                </com:DeliveryInfo>
                <com:PhoneNumber CountryCode="001" Number="4083222323" Type="Other"/>
                <com:Email EmailID="a@a.com" Type="Other"/>
                <com:SSR Type="DOCS" FreeText="P/US/ES111111/US/01Jan00/M/13Mar18/GARG/SHA"/>
                <!--<com:SSR Carrier="F9" FreeText="P/IN/F1234567/IN/05Jan85/M/13Dec14/Jones/Stephen"-->
                         <!--SegmentRef="IVaa0tGWQ+2grqSIL81xPQ==" Status="HK" Type="DOCS"/>-->
            </com:BookingTraveler>
            <com:BookingTraveler Key="P_1" Age="107" DOB="1910-01-01" Gender="M" TravelerType="ADT">
                <com:BookingTravelerName First="REID" Last="WILL" />
                <com:DeliveryInfo>
                    <com:ShippingAddress>
                        <com:AddressName>REID WILL</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:ShippingAddress>
                </com:DeliveryInfo>
                <com:PhoneNumber CountryCode="001" Number="4083221323" Type="Other"/>
                <com:Email EmailID="a@ab.com" Type="Other"/>
                <com:SSR Type="DOCS" FreeText="P/US/ES101010/US/01Jan10/M/13Mar18/WILL/REID"/>
                <!--<com:SSR Carrier="F9" FreeText="P/IN/F1234567/IN/05Jan85/M/13Dec14/Jones/Stephen"-->
                         <!--SegmentRef="IVaa0tGWQ+2grqSIL81xPQ==" Status="HK" Type="DOCS"/>-->
            </com:BookingTraveler>
            <com:FormOfPayment xmlns="http://www.travelport.com/schema/common_v40_0" Type="Credit" Key="1">
                <com:CreditCard Type="VI" CVV="123" ExpDate="2017-12" Name="Brad Pitt" Number="1212121212121212">
                    <com:BillingAddress>
                        <com:AddressName>Brad Pitt</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:BillingAddress>
                </com:CreditCard>
            </com:FormOfPayment>
            <air:AirPricingSolution Key="z0ApIr8Q2BKAvkHEAAAAAA==" TotalPrice="USD84.40" BasePrice="USD52.08" ApproximateTotalPrice="USD84.40" ApproximateBasePrice="USD52.08" Taxes="USD32.32" ApproximateTaxes="USD32.32" QuoteDate="2017-03-13" >
                  <air:AirSegment Key="z0ApIr8Q2BKAtkHEAAAAAA==" Group="0" Carrier="NK" FlightNumber="504" ProviderCode="1V" Origin="OAK" Destination="LAX" DepartureTime="2017-05-10T08:02:00.000-07:00" ArrivalTime="2017-05-10T09:17:00.000-07:00" FlightTime="75" TravelTime="75" Distance="338" ClassOfService="U" Equipment="319" ChangeOfPlane="false" OptionalServicesIndicator="false" LinkAvailability="true" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked">
    <air:CodeshareInfo OperatingCarrier="NK">Spirit Airlines</air:CodeshareInfo>
    <air:FlightDetails Key="z0ApIr8Q2BKAukHEAAAAAA==" Origin="OAK" Destination="LAX" DepartureTime="2017-05-10T08:02:00.000-07:00" ArrivalTime="2017-05-10T09:17:00.000-07:00" FlightTime="75" TravelTime="75" Equipment="319" OriginTerminal="1" DestinationTerminal="3">
      <air:InFlightServices>Non-smoking</air:InFlightServices>
      <air:InFlightServices>TSA SECURED FLIGHT</air:InFlightServices>
    </air:FlightDetails>
  </air:AirSegment>
                  <air:AirPricingInfo Key="z0ApIr8Q2BKAwkHEAAAAAA==" TotalPrice="USD42.20" BasePrice="USD26.04" ApproximateTotalPrice="USD42.20" ApproximateBasePrice="USD26.04" ApproximateTaxes="USD16.16" Taxes="USD16.16" LatestTicketingTime="2017-03-14T23:59:00.000-06:00" PricingMethod="Auto" IncludesVAT="false" ETicketability="Yes" PlatingCarrier="NK" ProviderCode="1V">
    <air:FareInfo Key="z0ApIr8Q2BKA1kHEAAAAAA==" FareBasis="UA14NR" PassengerTypeCode="ADT" Origin="OAK" Destination="LAX" EffectiveDate="2017-03-12T19:18:00.000-06:00" DepartureDate="2017-05-10" Amount="USD26.04" NotValidBefore="2017-05-10" NotValidAfter="2017-05-10" TaxAmount="USD16.16">
      <air:FareSurcharge Key="z0ApIr8Q2BKA2kHEAAAAAA==" Type="Other" Amount="USD20.46"/>
      <air:FareSurcharge Key="z0ApIr8Q2BKA3kHEAAAAAA==" Type="Other" Amount="USD4.65"/>
      <common_v36_0:Endorsement Value="NONREF/NONTRANS/VALID NK"/>
      <air:FareRuleKey FareInfoRef="z0ApIr8Q2BKA1kHEAAAAAA==" ProviderCode="1V">6UUVoSldxwj23KJUrzw+4sbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA2sB9FURx74CO422wYI1U7fZEGxxGSnLLmh/X821zh1lhf6E18cRejFCPLkFFVUhrezbwb/WYXzSxjxq4usDZoFi4BZ9wfbD3er/bRGkSYBezFOd+W7w/Ux0yW3p+wEZbkSXyVUQo7izjDC3rTjJ9BRDxXO2ZkIT/oMN1QPqv5KjU1OGSQRJx5DPBKOU9TGXCGHWPRpLNyE+xXwVX8cqvRpRhkZykc5WTP1ySAjiEXtJw932Z1pzfJlwRaLo0LP4GYmKg9bWgSjPVz3O4OShQJw1xJRbPEhPZ3HL6+NHumd+4U3UVdrNwrg8w+FnY2pdn5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA1AIdlnEhXPs</air:FareRuleKey>
    </air:FareInfo>
    <air:BookingInfo BookingCode="U" CabinClass="Economy" FareInfoRef="z0ApIr8Q2BKA1kHEAAAAAA==" SegmentRef="z0ApIr8Q2BKAtkHEAAAAAA=="/>
    <air:TaxInfo Category="AY" Amount="USD5.60" Key="z0ApIr8Q2BKAxkHEAAAAAA=="/>
    <air:TaxInfo Category="US" Amount="USD1.96" Key="z0ApIr8Q2BKAykHEAAAAAA=="/>
    <air:TaxInfo Category="XF" Amount="USD4.50" Key="z0ApIr8Q2BKAzkHEAAAAAA==">
      <common_v36_0:TaxDetail Amount="USD4.50" OriginAirport="OAK"/>
    </air:TaxInfo>
    <air:TaxInfo Category="ZP" Amount="USD4.10" Key="z0ApIr8Q2BKA0kHEAAAAAA==">
      <common_v36_0:TaxDetail Amount="USD4.10" OriginAirport="OAK"/>
    </air:TaxInfo>
    <air:FareCalc>OAK NK LAX Q4.65Q20.46 0.93UA14NR USD26.04END</air:FareCalc>
    <air:PassengerType BookingTravelerRef="P_0" Code="ADT" Age="117"/>
    <air:PassengerType BookingTravelerRef="P_1" Code="ADT" Age="107"/>
    <air:ChangePenalty>
      <air:Amount>USD125.00</air:Amount>
    </air:ChangePenalty>
    <air:BaggageAllowances>
      <air:BaggageAllowanceInfo TravelerType="ADT" Origin="OAK" Destination="LAX" Carrier="NK">
        <air:URLInfo>
          <air:URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSNK.BAGG</air:URL>
        </air:URLInfo>
        <air:TextInfo>
          <air:Text>CONTACT CARRIER – CHARGES MAY APPLY</air:Text>
          <air:Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</air:Text>
        </air:TextInfo>
      </air:BaggageAllowanceInfo>
      <air:CarryOnAllowanceInfo Origin="OAK" Destination="LAX" Carrier="NK">
        <air:TextInfo>
          <air:Text>BAGGAGE ALLOWANCE DATA NOT AVAILABLE</air:Text>
        </air:TextInfo>
      </air:CarryOnAllowanceInfo>
    </air:BaggageAllowances>
  </air:AirPricingInfo>
                  <air:FareNote Key="z0ApIr8Q2BKA6kHEAAAAAA==">LAST DATE TO PURCHASE TICKET: 14MAR17</air:FareNote>
  <air:FareNote Key="z0ApIr8Q2BKA7kHEAAAAAA==">TICKETING AGENCY 274M</air:FareNote>
  <air:FareNote Key="z0ApIr8Q2BKA8kHEAAAAAA==">DEFAULT PLATING CARRIER NK</air:FareNote>
  <air:FareNote Key="z0ApIr8Q2BKA9kHEAAAAAA==">E-TKT REQUIRED</air:FareNote>
            </air:AirPricingSolution>

            <com:ActionStatus Type="TAU" TicketDate="2017-03-14T01:18:36Z" ProviderCode="1V"/>

        </univ:AirCreateReservationReq>
    </soap:Body>
</soap:Envelope>
vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

Please try with a VI card which starts with 4. Due to card validation it is failing. Also, try removing PlatingCarrier from AirPriceInfo. Please let me know how it goes. Thanks.

oldmonk7 commented 7 years ago

Hi @vivekjyotipramanik

I tried using a cc number starting with 4, no luck though. Regarding Plating Carrier, we just append the results of the search results to the request. which I think we will have to do anyway in Prod. FYI we are using https://github.com/Travelport-Ukraine/uapi-json/

vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

Could you please provide the new request and response you have tried with. Could you please confirm if you tried after removing PlatingCarrier.

Also, Could you please try in http://demo.travelportuniversalapi.com/ using your credentials. Please let me know how it goes. Thanks.

oldmonk7 commented 7 years ago

Hi I did removing the PlatingCarrier too, but still the same results REQ:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:univ="http://www.travelport.com/schema/universal_v36_0">
        <univ:SupportedVersions airVersion="air_v36_0"/>
    </soap:Header>
    <soap:Body>
        <univ:AirCreateReservationReq AuthorizedBy="user" RuleName="SIP" RetainReservation="Both" TargetBranch="P105142" TraceId="" xmlns:univ="http://www.travelport.com/schema/universal_v36_0"  xmlns:com="http://www.travelport.com/schema/common_v36_0" xmlns:air="http://www.travelport.com/schema/air_v36_0" xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0">
            <com:BillingPointOfSaleInfo OriginApplication="uAPI" />
            <com:BookingTraveler Key="P_0" Age="117" DOB="1900-01-01" Gender="M" TravelerType="ADT">
                <com:BookingTravelerName First="SHA" Last="GARG" />
                <com:DeliveryInfo>
                    <com:ShippingAddress>
                        <com:AddressName>SHA GARG</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:ShippingAddress>
                </com:DeliveryInfo>
                <com:PhoneNumber CountryCode="001" Number="4083222323" Type="Other"/>
                <com:Email EmailID="a@a.com" Type="Other"/>
                <com:SSR Type="DOCS" FreeText="P/US/ES111111/US/01Jan00/M/15Mar18/GARG/SHA"/>
                <!--<com:SSR Carrier="F9" FreeText="P/IN/F1234567/IN/05Jan85/M/13Dec14/Jones/Stephen"-->
                         <!--SegmentRef="IVaa0tGWQ+2grqSIL81xPQ==" Status="HK" Type="DOCS"/>-->
            </com:BookingTraveler>
            <com:BookingTraveler Key="P_1" Age="107" DOB="1910-01-01" Gender="M" TravelerType="ADT">
                <com:BookingTravelerName First="REID" Last="WILL" />
                <com:DeliveryInfo>
                    <com:ShippingAddress>
                        <com:AddressName>REID WILL</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:ShippingAddress>
                </com:DeliveryInfo>
                <com:PhoneNumber CountryCode="001" Number="4083221323" Type="Other"/>
                <com:Email EmailID="a@ab.com" Type="Other"/>
                <com:SSR Type="DOCS" FreeText="P/US/ES101010/US/01Jan10/M/15Mar18/WILL/REID"/>
                <!--<com:SSR Carrier="F9" FreeText="P/IN/F1234567/IN/05Jan85/M/13Dec14/Jones/Stephen"-->
                         <!--SegmentRef="IVaa0tGWQ+2grqSIL81xPQ==" Status="HK" Type="DOCS"/>-->
            </com:BookingTraveler>
            <com:FormOfPayment xmlns="http://www.travelport.com/schema/common_v40_0" Type="Credit" Key="1">
                <com:CreditCard Type="VI" CVV="123" ExpDate="2017-12" Name="John Doe" Number="4212121212121212">
                    <com:BillingAddress>
                        <com:AddressName>John Doe</com:AddressName>
                        <com:Street>80 S Park St.</com:Street>
                        <com:City>San Francisco</com:City>
                        <com:PostalCode>94143</com:PostalCode>
                        <com:Country>US</com:Country>
                    </com:BillingAddress>
                </com:CreditCard>
            </com:FormOfPayment>
            <air:AirPricingSolution Key="leACTr4R2BKA+8RAAAAAAA==" TotalPrice="USD84.40" BasePrice="USD52.08" ApproximateTotalPrice="USD84.40" ApproximateBasePrice="USD52.08" Taxes="USD32.32" ApproximateTaxes="USD32.32" QuoteDate="2017-03-15" >
                  <air:AirSegment Key="leACTr4R2BKA88RAAAAAAA==" Group="0" Carrier="NK" FlightNumber="504" ProviderCode="1V" Origin="OAK" Destination="LAX" DepartureTime="2017-05-10T08:02:00.000-07:00" ArrivalTime="2017-05-10T09:17:00.000-07:00" FlightTime="75" TravelTime="75" Distance="338" ClassOfService="U" Equipment="319" ChangeOfPlane="false" OptionalServicesIndicator="false" LinkAvailability="true" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked">
    <air:CodeshareInfo OperatingCarrier="NK">Spirit Airlines</air:CodeshareInfo>
    <air:FlightDetails Key="leACTr4R2BKA98RAAAAAAA==" Origin="OAK" Destination="LAX" DepartureTime="2017-05-10T08:02:00.000-07:00" ArrivalTime="2017-05-10T09:17:00.000-07:00" FlightTime="75" TravelTime="75" Equipment="319" OriginTerminal="1" DestinationTerminal="3">
      <air:InFlightServices>Non-smoking</air:InFlightServices>
      <air:InFlightServices>TSA SECURED FLIGHT</air:InFlightServices>
    </air:FlightDetails>
  </air:AirSegment>
                  <air:AirPricingInfo Key="leACTr4R2BKA/8RAAAAAAA==" TotalPrice="USD42.20" BasePrice="USD26.04" ApproximateTotalPrice="USD42.20" ApproximateBasePrice="USD26.04" ApproximateTaxes="USD16.16" Taxes="USD16.16" LatestTicketingTime="2017-03-16T23:59:00.000-06:00" PricingMethod="Auto" IncludesVAT="false" ETicketability="Yes" ProviderCode="1V">
    <air:FareInfo Key="leACTr4R2BKAE9RAAAAAAA==" FareBasis="UA14NR" PassengerTypeCode="ADT" Origin="OAK" Destination="LAX" EffectiveDate="2017-03-15T13:04:00.000-06:00" DepartureDate="2017-05-10" Amount="USD26.04" NotValidBefore="2017-05-10" NotValidAfter="2017-05-10" TaxAmount="USD16.16">
      <air:FareSurcharge Key="leACTr4R2BKAF9RAAAAAAA==" Type="Other" Amount="USD20.46"/>
      <air:FareSurcharge Key="leACTr4R2BKAG9RAAAAAAA==" Type="Other" Amount="USD4.65"/>
      <common_v36_0:Endorsement Value="NONREF/NONTRANS/VALID NK"/>
      <air:FareRuleKey FareInfoRef="leACTr4R2BKAE9RAAAAAAA==" ProviderCode="1V">6UUVoSldxwjbpaXlJ3o8XMbKj3F8T9EyxsqPcXxP0TIjSPOlaHfQe5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA2sB9FURx74CO422wYI1U7fZEGxxGSnLLmh/X821zh1lhf6E18cRejFCPLkFFVUhrezbwb/WYXzSxjxq4usDZoFi4BZ9wfbD3er/bRGkSYBezFOd+W7w/Ux0yW3p+wEZbkSXyVUQo7izjDC3rTjJ9BRDxXO2ZkIT/oMN1QPqv5KjU1OGSQRJx5DPBKOU9TGXCGHWPRpLNyE+xXwVX8cqvRpRhkZykc5WTP1ySAjiEXtJw932Z1pzfJlwRaLo0LP4GYmKg9bWgSjPVz3O4OShQJw1xJRbPEhPZ3HL6+NHumd+4U3UVdrNwrg8w+FnY2pdn5cuasWd6i8Dly5qxZ3qLwOXLmrFneovA1AIdlnEhXPs</air:FareRuleKey>
    </air:FareInfo>
    <air:BookingInfo BookingCode="U" CabinClass="Economy" FareInfoRef="leACTr4R2BKAE9RAAAAAAA==" SegmentRef="leACTr4R2BKA88RAAAAAAA=="/>
    <air:TaxInfo Category="AY" Amount="USD5.60" Key="leACTr4R2BKAA9RAAAAAAA=="/>
    <air:TaxInfo Category="US" Amount="USD1.96" Key="leACTr4R2BKAB9RAAAAAAA=="/>
    <air:TaxInfo Category="XF" Amount="USD4.50" Key="leACTr4R2BKAC9RAAAAAAA==">
      <common_v36_0:TaxDetail Amount="USD4.50" OriginAirport="OAK"/>
    </air:TaxInfo>
    <air:TaxInfo Category="ZP" Amount="USD4.10" Key="leACTr4R2BKAD9RAAAAAAA==">
      <common_v36_0:TaxDetail Amount="USD4.10" OriginAirport="OAK"/>
    </air:TaxInfo>
    <air:FareCalc>OAK NK LAX Q4.65Q20.46 0.93UA14NR USD26.04END</air:FareCalc>
    <air:PassengerType BookingTravelerRef="P_0" Code="ADT" Age="117"/>
    <air:PassengerType BookingTravelerRef="P_1" Code="ADT" Age="107"/>
    <air:ChangePenalty>
      <air:Amount>USD125.00</air:Amount>
    </air:ChangePenalty>
    <air:BaggageAllowances>
      <air:BaggageAllowanceInfo TravelerType="ADT" Origin="OAK" Destination="LAX" Carrier="NK">
        <air:URLInfo>
          <air:URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSNK.BAGG</air:URL>
        </air:URLInfo>
        <air:TextInfo>
          <air:Text>CONTACT CARRIER – CHARGES MAY APPLY</air:Text>
          <air:Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</air:Text>
        </air:TextInfo>
      </air:BaggageAllowanceInfo>
      <air:CarryOnAllowanceInfo Origin="OAK" Destination="LAX" Carrier="NK">
        <air:TextInfo>
          <air:Text>BAGGAGE ALLOWANCE DATA NOT AVAILABLE</air:Text>
        </air:TextInfo>
      </air:CarryOnAllowanceInfo>
    </air:BaggageAllowances>
  </air:AirPricingInfo>
                  <air:FareNote Key="leACTr4R2BKAJ9RAAAAAAA==">LAST DATE TO PURCHASE TICKET: 16MAR17</air:FareNote>
  <air:FareNote Key="leACTr4R2BKAK9RAAAAAAA==">TICKETING AGENCY 274M</air:FareNote>
  <air:FareNote Key="leACTr4R2BKAL9RAAAAAAA==">DEFAULT PLATING CARRIER NK</air:FareNote>
  <air:FareNote Key="leACTr4R2BKAM9RAAAAAAA==">E-TKT REQUIRED</air:FareNote>
            </air:AirPricingSolution>

            <com:ActionStatus Type="TAU" TicketDate="2017-03-15T19:04:42Z" ProviderCode="1V"/>

        </univ:AirCreateReservationReq>
    </soap:Body>
</soap:Envelope>

RESPONSE:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP:Body><universal:AirCreateReservationRsp TraceId="" TransactionId="D35BA4DA0A07643B38567E4F9EE13D6D" ResponseTime="9552" xmlns:universal="http://www.travelport.com/schema/universal_v36_0" xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0" xmlns:air="http://www.travelport.com/schema/air_v36_0"><common_v36_0:ResponseMessage Code="3715" Type="Warning" ProviderCode="1V">Host only allows one Address/Delivery Address. Only one sent in request.</common_v36_0:ResponseMessage><common_v36_0:ResponseMessage Code="0" Type="Warning" ProviderCode="1V">Indicates FOP application failed: INVLD FRMT/NOT ENT/F-VI4212121212121212/D1217-John.Doe</common_v36_0:ResponseMessage><universal:UniversalRecord LocatorCode="5JVQBC" Version="0" Status="Active"><common_v36_0:BookingTraveler Key="yR29Sr7Q2BKA/yxAAAAAAA==" TravelerType="ADT" Age="117" DOB="1900-01-01" Gender="M" ElStat="A"><common_v36_0:BookingTravelerName First="SHA" Last="GARG"/><common_v36_0:DeliveryInfo><common_v36_0:ShippingAddress Key="yR29Sr7Q2BKARzxAAAAAAA==" ElStat="A"><common_v36_0:AddressName>SHA GARG</common_v36_0:AddressName><common_v36_0:Street>80 S Park St.</common_v36_0:Street><common_v36_0:City>San Francisco</common_v36_0:City><common_v36_0:PostalCode>94143</common_v36_0:PostalCode><common_v36_0:Country>US</common_v36_0:Country><common_v36_0:ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA=="/></common_v36_0:ShippingAddress></common_v36_0:DeliveryInfo><common_v36_0:PhoneNumber Key="yR29Sr7Q2BKAOzxAAAAAAA==" Type="Other" Location="DEN" CountryCode="001" Number="4083222323" ElStat="A"><common_v36_0:ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA=="/></common_v36_0:PhoneNumber><common_v36_0:Email Key="yR29Sr7Q2BKAQzxAAAAAAA==" Type="Other" EmailID="a@a.com" ElStat="A"><common_v36_0:ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA=="/></common_v36_0:Email><common_v36_0:SSR Key="yR29Sr7Q2BKABzxAAAAAAA==" Status="HK" Type="DOCS" FreeText="P/US/ES111111/US/01JAN00/M/15MAR18/GARG/SHA-1GARG/SHA" Carrier="NK" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" ElStat="A"/></common_v36_0:BookingTraveler><common_v36_0:BookingTraveler Key="yR29Sr7Q2BKAEzxAAAAAAA==" TravelerType="ADT" Age="107" DOB="1910-01-01" Gender="M" ElStat="A"><common_v36_0:BookingTravelerName First="REID" Last="WILL"/><common_v36_0:DeliveryInfo><common_v36_0:ShippingAddress Key="yR29Sr7Q2BKAVzxAAAAAAA==" ElStat="A"><common_v36_0:AddressName>REID WILL</common_v36_0:AddressName><common_v36_0:Street>80 S Park St.</common_v36_0:Street><common_v36_0:City>San Francisco</common_v36_0:City><common_v36_0:PostalCode>94143</common_v36_0:PostalCode><common_v36_0:Country>US</common_v36_0:Country></common_v36_0:ShippingAddress></common_v36_0:DeliveryInfo><common_v36_0:PhoneNumber Key="yR29Sr7Q2BKASzxAAAAAAA==" Type="Other" Location="DEN" CountryCode="001" Number="4083221323" ElStat="A"><common_v36_0:ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA=="/></common_v36_0:PhoneNumber><common_v36_0:Email Key="yR29Sr7Q2BKAUzxAAAAAAA==" Type="Other" EmailID="a@ab.com" ElStat="A"><common_v36_0:ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA=="/></common_v36_0:Email><common_v36_0:SSR Key="yR29Sr7Q2BKAGzxAAAAAAA==" Status="HK" Type="DOCS" FreeText="P/US/ES101010/US/01JAN10/M/15MAR18/WILL/REID-1WILL/REID" Carrier="NK" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" ElStat="A"/></common_v36_0:BookingTraveler><common_v36_0:ActionStatus Key="yR29Sr7Q2BKAYzxAAAAAAA==" Type="TAU" TicketDate="2017-03-15T23:59:00.000-06:00" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" ProviderCode="1V" ElStat="A"/><universal:ProviderReservationInfo Key="yR29Sr7Q2BKAG0xAAAAAAA==" ProviderCode="1V" LocatorCode="VXDLGS" CreateDate="2017-03-15T19:04:52.525+00:00" ModifiedDate="2017-03-15T19:04:52.525+00:00" HostCreateDate="2017-03-15" OwningPCC="274M"/>
vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

I can see the UR created, so the reservation was successful and the error about fare is not there, so the main issue is resolved with the plating carrier removed . Although the response you have provided did not came completely, could you please check the response, looks like it was pasted half of it.

The FOP failed cause the test credit card is invalid. Please try with a valid test visa credit card. Thanks.

oldmonk7 commented 7 years ago

Ok that makes sense.

Though, I was able to create a reservation previously also but with warnings. Also as I understand PlatingCarrier is required for the prod env. Will the problem resurface in Prod then?

Also would you have any pointers on how can I get a test credit card number or it just needs to follow the rules of the VI credit card number?

Here is the full response.

<Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <Body>
        <AirCreateReservationRsp TraceId="" TransactionId="D35BA4DA0A07643B38567E4F9EE13D6D" ResponseTime="9552" xmlns:universal="http://www.travelport.com/schema/universal_v36_0" xmlns:common_v36_0="http://www.travelport.com/schema/common_v36_0" xmlns:air="http://www.travelport.com/schema/air_v36_0">
            <ResponseMessage Code="3715" Type="Warning" ProviderCode="1V">
                Host only allows one Address/Delivery Address. Only one sent in request.
            </ResponseMessage>
            <ResponseMessage Code="0" Type="Warning" ProviderCode="1V">
                Indicates FOP application failed: INVLD FRMT/NOT ENT/F-VI4212121212121212/D1217-John.Doe
            </ResponseMessage>
            <UniversalRecord LocatorCode="5JVQBC" Version="0" Status="Active">
                <BookingTraveler Key="yR29Sr7Q2BKA/yxAAAAAAA==" TravelerType="ADT" Age="117" DOB="1900-01-01" Gender="M" ElStat="A">
                    <BookingTravelerName First="SHA" Last="GARG" />
                    <DeliveryInfo>
                        <ShippingAddress Key="yR29Sr7Q2BKARzxAAAAAAA==" ElStat="A">
                            <AddressName>
                                SHA GARG
                            </AddressName>
                            <Street>
                                80 S Park St.
                            </Street>
                            <City>
                                San Francisco
                            </City>
                            <PostalCode>
                                94143
                            </PostalCode>
                            <Country>
                                US
                            </Country>
                            <ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA==" />
                        </ShippingAddress>
                    </DeliveryInfo>
                    <PhoneNumber Key="yR29Sr7Q2BKAOzxAAAAAAA==" Type="Other" Location="DEN" CountryCode="001" Number="4083222323" ElStat="A">
                        <ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA==" />
                    </PhoneNumber>
                    <Email Key="yR29Sr7Q2BKAQzxAAAAAAA==" Type="Other" EmailID="a@a.com" ElStat="A">
                        <ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA==" />
                    </Email>
                    <SSR Key="yR29Sr7Q2BKABzxAAAAAAA==" Status="HK" Type="DOCS" FreeText="P/US/ES111111/US/01JAN00/M/15MAR18/GARG/SHA-1GARG/SHA" Carrier="NK" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" ElStat="A" />
                </BookingTraveler>
                <BookingTraveler Key="yR29Sr7Q2BKAEzxAAAAAAA==" TravelerType="ADT" Age="107" DOB="1910-01-01" Gender="M" ElStat="A">
                    <BookingTravelerName First="REID" Last="WILL" />
                    <DeliveryInfo>
                        <ShippingAddress Key="yR29Sr7Q2BKAVzxAAAAAAA==" ElStat="A">
                            <AddressName>
                                REID WILL
                            </AddressName>
                            <Street>
                                80 S Park St.
                            </Street>
                            <City>
                                San Francisco
                            </City>
                            <PostalCode>
                                94143
                            </PostalCode>
                            <Country>
                                US
                            </Country>
                        </ShippingAddress>
                    </DeliveryInfo>
                    <PhoneNumber Key="yR29Sr7Q2BKASzxAAAAAAA==" Type="Other" Location="DEN" CountryCode="001" Number="4083221323" ElStat="A">
                        <ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA==" />
                    </PhoneNumber>
                    <Email Key="yR29Sr7Q2BKAUzxAAAAAAA==" Type="Other" EmailID="a@ab.com" ElStat="A">
                        <ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA==" />
                    </Email>
                    <SSR Key="yR29Sr7Q2BKAGzxAAAAAAA==" Status="HK" Type="DOCS" FreeText="P/US/ES101010/US/01JAN10/M/15MAR18/WILL/REID-1WILL/REID" Carrier="NK" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" ElStat="A" />
                </BookingTraveler>
                <ActionStatus Key="yR29Sr7Q2BKAYzxAAAAAAA==" Type="TAU" TicketDate="2017-03-15T23:59:00.000-06:00" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" ProviderCode="1V" ElStat="A" />
                <ProviderReservationInfo Key="yR29Sr7Q2BKAG0xAAAAAAA==" ProviderCode="1V" LocatorCode="VXDLGS" CreateDate="2017-03-15T19:04:52.525+00:00" ModifiedDate="2017-03-15T19:04:52.525+00:00" HostCreateDate="2017-03-15" OwningPCC="274M" />
                <AirReservation LocatorCode="5JKZNP" CreateDate="2017-03-15T19:04:52.251+00:00" ModifiedDate="2017-03-15T19:04:52.525+00:00">
                    <BookingTravelerRef Key="yR29Sr7Q2BKA/yxAAAAAAA==" />
                    <BookingTravelerRef Key="yR29Sr7Q2BKAEzxAAAAAAA==" />
                    <ProviderReservationInfoRef Key="yR29Sr7Q2BKAG0xAAAAAAA==" />
                    <AirSegment Key="leACTr4R2BKA88RAAAAAAA==" Group="0" Carrier="NK" CabinClass="Economy" FlightNumber="504" ProviderCode="1V" Origin="OAK" Destination="LAX" DepartureTime="2017-05-10T08:02:00.000-07:00" ArrivalTime="2017-05-10T09:17:00.000-07:00" TravelTime="75" Distance="338" ClassOfService="U" ETicketability="Ticketless" Equipment="319" Status="HK" ChangeOfPlane="false" GuaranteedPaymentCarrier="No" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" TravelOrder="1" OptionalServicesIndicator="false" LinkAvailability="true" ElStat="A">
                        <FlightDetails Key="leACTr4R2BKA98RAAAAAAA==" Origin="OAK" Destination="LAX" DepartureTime="2017-05-10T08:02:00.000-07:00" ArrivalTime="2017-05-10T09:17:00.000-07:00" FlightTime="75" TravelTime="75" Equipment="319" OriginTerminal="1" DestinationTerminal="3" ElStat="A" />
                        <SellMessage>
                            OFFER CAR/HOTEL    |CAL      |HOA
                        </SellMessage>
                        <SellMessage>
                            DEPARTS OAK TERMINAL 1  - ARRIVES LAX TERMINAL 3
                        </SellMessage>
                    </AirSegment>
                    <AirPricingInfo Key="leACTr4R2BKA/8RAAAAAAA==" TotalPrice="USD42.20" BasePrice="USD26.04" ApproximateTotalPrice="USD42.20" ApproximateBasePrice="USD26.04" Taxes="USD16.16" LatestTicketingTime="2017-03-16T23:59:00.000-06:00" PricingMethod="Auto" Exchangeable="true" IncludesVAT="false" ETicketability="Yes" ProviderCode="1V" ProviderReservationInfoRef="yR29Sr7Q2BKAG0xAAAAAAA==" AirPricingInfoGroup="1" PricingType="StoredFare" ElStat="A">
                        <FareInfo Key="leACTr4R2BKAE9RAAAAAAA==" FareBasis="UA14NR" PassengerTypeCode="ADT" Origin="OAK" Destination="LAX" EffectiveDate="2017-03-15T00:00:00.000-06:00" Amount="USD26.04" NotValidBefore="2017-05-10" NotValidAfter="2017-05-10" ElStat="A">
                            <FareSurcharge Key="yR29Sr7Q2BKAJ0xAAAAAAA==" Type="Other" Amount="USD20.46" ElStat="A" SegmentRef="leACTr4R2BKA88RAAAAAAA==" />
                            <FareSurcharge Key="yR29Sr7Q2BKAK0xAAAAAAA==" Type="Other" Amount="USD4.65" ElStat="A" SegmentRef="leACTr4R2BKA88RAAAAAAA==" />
                            <Endorsement Value="NONREF/NONTRANS/VALID NK" />
                        </FareInfo>
                        <FareStatus Code="ReadyToTicket" />
                        <BookingInfo BookingCode="U" CabinClass="Economy" FareInfoRef="leACTr4R2BKAE9RAAAAAAA==" SegmentRef="leACTr4R2BKA88RAAAAAAA==" />
                        <TaxInfo Category="AY" Amount="USD5.60" Key="leACTr4R2BKAA9RAAAAAAA==" />
                        <TaxInfo Category="US" Amount="USD1.96" Key="leACTr4R2BKAB9RAAAAAAA==" />
                        <TaxInfo Category="XF" Amount="USD4.50" Key="leACTr4R2BKAC9RAAAAAAA==">
                            <TaxDetail Amount="USD4.50" OriginAirport="OAK" />
                        </TaxInfo>
                        <TaxInfo Category="ZP" Amount="USD4.10" Key="leACTr4R2BKAD9RAAAAAAA==">
                            <TaxDetail Amount="USD4.10" OriginAirport="OAK" />
                        </TaxInfo>
                        <FareCalc>
                            OAK NK LAX Q4.65Q20.46 0.93UA14NR USD26.04END
                        </FareCalc>
                        <PassengerType Code="ADT" Age="117" BookingTravelerRef="yR29Sr7Q2BKA/yxAAAAAAA==">
                            <FareGuaranteeInfo GuaranteeType="Auto" />
                        </PassengerType>
                        <PassengerType Code="ADT" Age="107" BookingTravelerRef="yR29Sr7Q2BKAEzxAAAAAAA==">
                            <FareGuaranteeInfo GuaranteeType="Auto" />
                        </PassengerType>
                        <BookingTravelerRef Key="yR29Sr7Q2BKA/yxAAAAAAA==" />
                        <BookingTravelerRef Key="yR29Sr7Q2BKAEzxAAAAAAA==" />
                        <TicketingModifiersRef Key="yR29Sr7Q2BKAM0xAAAAAAA==" />
                    </AirPricingInfo>
                    <TicketingModifiers PlatingCarrier="NK" Key="yR29Sr7Q2BKAM0xAAAAAAA==" ElStat="A">
                        <DocumentSelect IssueElectronicTicket="true" />
                    </TicketingModifiers>
                </AirReservation>
                <AgencyInfo>
                    <AgentAction ActionType="Created" AgentCode="UAPI8307497144" BranchCode="P105142" AgencyCode="S30295" EventTime="2017-03-15T19:04:43.521+00:00" />
                </AgencyInfo>
            </UniversalRecord>
        </AirCreateReservationRsp>
    </Body>
</Envelope>
oldmonk7 commented 7 years ago

Hi, I used a valid credit card number and now I dont see the warning now. Just need to clarify PlatingCarrier thing.

vivekjyotipramanik commented 7 years ago

Hi oldmonk7,

PlatingCarrier is not a required element and it depends on the particular Segment/AirPriceInfo if it needs to pass or not. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#../Subsystems/Schemas/Content/Schemas/AirCreateReservationReq.html%3FTocPath%3DSchema%7C_____7