Pay
This service is used to process the payment. If the card is enrolled for 3D authentication, use the "threeDSecureInfo" information
which will return in the response to display the bank OTP page to the end user.
URL: https://devpayments.flydubai.com/payments/pay
Method: POST
Headers:
-
-
- Content-Type : application/json
- Authorization : Bearer <Token received in create CPG >
- clientId : XXXXXXXXXXXXX
-
Body:
{ "systemId": "CallCenterIVR", "entityId":"FL38LO", "paymentId":"9510", "sessionId" : "", "paymentMethod" : "CARD", "requestType": "TRAVEL", "amount" : "1200.0", "currency" : "AED", "cardDetails": { "cardType": "VISA", "cardNumber": "4012001038443335", "cardExpiry": "2005", "cardSecurityCode": "123" }, "billTo": { "firstName": "firstName", "lastName": "lastName", "street": "street", "city": "city", "state": "state", "postalCode": "postalCode", "country": "AE", "emailId": "test@test.com" } }
Response:
{ "success": "true", "message": "Approved", "orderId": "491877", "link": "https://qapayments.flydubai.com/eps/cards/491877", "cardToken": "fd6d022c-5dd3-4d3d-943c-b3dbb3e80dbc", "is3DSOrder": "false", "redirectionURL": "https://test.flydubai.com/payment-capture?b=MTUzNDgrdGVzdA==&locale=en&orderId=491877&paymentStatus=AUTHORIZED&sessionId=94d32bac-72b4-40aa-86f0-6b0d67d68e55&transactionKey=7B7320D9C17472EFEAE79607619EE585B2BAECC46E4909C99A5F16B605109953", "riskFactorResponse": { "merchantReferenceCode": "491877", "requestId": "5549711743626823504009", "reasonCode": "100", "requestToken": "AhjzbwSTLNm40zISipCJEQFRp+TMQL+IEYXYRxsMmkmVdHpMGbgUgAAA5wP4", "afsResult": "90", "afsDecision": "ACCEPT" }, "threeDSecureInfo": { "htmlBodyContent": "<html> HTML Page Details</html>", "orderId": "87062" }, "isOTPRequired": "false", "showIntermediatePage": "Y" }