Initialize CPG Session

This service is used to create session in CPG and the same session is to be used while calling pay service.

URL: https://devapi.flydubai.com/res/v3/api/Payment/InitCPGSession

Method: POST

Headers:

      • Content-Type                    : application/json
      • Authorization                    : Bearer <JWT Token>

Body:

 

{
  "TransactionInfo": {
    "SecurityGUID": "",
    "CarrierCodes": [
      {
        "AccessibleCarrierCode": "FZ"
      }
    ],
    "ClientIPAddress": "10.1.133.20",
    "HistoricUserName": ""
  },
  "ReservationInfo": {
    "SeriesNumber": "299",
    "ConfirmationNumber": "JWBMIW"
  },
  "systemId": "CallCenterIVR",
  "locale": "en",
  "successURL": "https://sprintdomain/payment-capture?b=MTUzNDgrdGVzdA==&locale=en",
  "failureURL": "",
  "cancelURL": "https://printdomain/booking?b=MTUzNDgrdGVzdA==&locale=en",
  "pendingURL": "",
  "notificationURL": "https://printdomain/fzeps"
}

 

Response:

{
  "sessionId": "377401a0-7746-4303-9ead-24e3bbfa1350",
  "url": "http://test/paymentui/?sessionId=377401a0-7746-4303-9ead-24e3bbfa1350&transactionKey=7786CF5C6823E49709F7A810DF4637084B376664A1BAD8F920F8A1C0E5526B88&systemId=olci",
  "timeoutInMillis": "600000",
  "paymentID": "56784"
}