Skip to content

Query: Adding Credit Card type and expiry date in FOP in Fare_PricePNRWithBookingClass request #502

@skills-up

Description

@skills-up

Hello,

I'm trying to add credit card type and expiry date in form of payment for Fare_PricePNRWithBookingClass as below:

            $options['formOfPayment'] = [
                new FormOfPayment([
                    'type' => FormOfPayment::TYPE_CREDIT_CARD,
                    'creditCardNumber' => '123456789012345678',
                    'creditCardType' => 'VI',
                    'vendorCode' => 'VI',
                    'expiryDate' => '1231',
                ]),
            ];

However, the resultant information has only this information:

<ns1:pricingOptionGroup>
  <ns1:pricingOptionKey>
    <ns1:pricingOptionKey>FOP</ns1:pricingOptionKey>
  </ns1:pricingOptionKey>
  <ns1:formOfPaymentInformation>
    <ns1:formOfPayment>
      <ns1:type>CC</ns1:type>
      <ns1:creditCardNumber>123456789012345678</ns1:creditCardNumber>
    </ns1:formOfPayment>
  </ns1:formOfPaymentInformation>
</ns1:pricingOptionGroup>

Neither creditCardType nor vendorCode works. expiryDate doesn't get added either.

How should I specify the form of payment here to include complete credit card details?

Or, should I use some alternative mechanism to add these details? The reason I want to add it during pricing is to get any credit card fee included in response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions