v1

latestOpenAPI 3.1.02026-07-26270268.6 KB

Apple Pay Direct API

The Apple Pay API allows merchants to process payments using Apple Pay.This API accepts a decrypted Apple Pay payment token, validates it, and processes the transaction through the payment gateway.

post/v2/direct/apple/pay

Request body

sessionIdstring required

A session ID, is a unique identifier that a server generates as part of the create session API call and assigns to a merchant transaction for the duration of the session (15 min).

method'decrypted' required

The method paramter identifies if the direct Apple Pay payment request will be using the encrypted or decrypted Apple Pay payment token.

walletDatastring required

The wallet data parameter will have all required payment token data to process the Apple Pay payment token. The wallet data needs to be encoded in the payment request.

source'HPP' | 'MobileApp' | 'DirectAPI' required

Source of capturing the transaction. Use "DirectAPI" for this call.

initiatedBy'Internet' | 'Merchant' required

A value indicating whether the request is started from Customer(Internet) or Merchant.

Response

200

responseMessagestring
detailedResponseMessagestring
languagestring
responseCodestring
detailedResponseCodestring

Example response

{
  "order": {
    "orderId": "d56026ac-2784-4524-eef7-08dc33b7e268",
    "amount": 1850,
    "totalAmount": 1850,
    "settleAmount": 1850,
    "currency": "EGP",
    "settleCurrency": "EGP",
    "language": "en",
    "detailedStatus": "Paid",
    "status": "Success",
    "threeDSecureId": "5e3cf62a-9ec7-4d26-ca24-08dc33b7e269",
    "merchantId": "4907f9f6-af43-434a-340a-08da8933ece3",
    "merchantPublicKey": "40225a89-be31-4f2e-a10a-27b2bbc4e3b3",
    "mcc": "4011",
    "callbackUrl": "https://omnytr.free.beeceptor.com",
    "returnUrl": "https://webhook.site/92c440a0-4b17-4f96-ad72-bb8c91080f05",
    "initiatedBy": "Internet",
    "paymentOperation": "Pay",
    "restrictPaymentMethods": true,
    "transactions": [
      {
        "transactionId": "5e3cf62a-9ec7-4d26-ca24-08dc33b7e269",
        "type": "Authentication",
        "status": "Success",
        "amount": 1850,
        "currency": "EGP",
        "source": "MobileApp",
        "stan": "0",
        "paymentMethod": {
          "type": "Card",
          "brand": "mastercard",
          "cardholderName": "kanti",
          "maskedCardNumber": "512345******0008",
          "expiryDate": {
            "month": 1,
            "year": 39
          }
        },
        "codes": {
          "responseCode": "000",
          "responseMessage": "Success",
          "detailedResponseCode": "000",
          "detailedResponseMessage": "The operation was successful"
        },
        "authenticationDetails": {
          "acsEci": "02",
          "authenticationToken": "kHyn+7YFi1EUAREAAAAvNUe6Hv8=",
          "xid": "6ac70f42-f347-419d-b2b6-ee13b2b9bf7a",
          "acsTransactionId": "dc1d9f8c-41d8-4553-9c86-26d3d19d1ce6",
          "directoryServerId": "A999999999",
          "dsTransactionId": "6ac70f42-f347-419d-b2b6-ee13b2b9bf7a",
          "methodSupported": "SUPPORTED",
          "protocolVersion": "2.1.0",
          "requestorId": "MAS00001_INT_MPGS_MTTESTGEIDEATESTE",
          "requestorName": "Geidea Technology",
          "transactionStatus": "Y"
        },
        "correlationId": "01016686-b45a-41c3-8b36-04e2971bfde6",
        "paymentAttemptId": "e8cbc40e-21cd-4c47-8b7f-d4df44c342c7",
        "acquirer": {
          "merchantId": "001222222222"
        },
        "extensionDate": "2024-03-04T13:36:08.5778312",
        "deviceId": "f4767e8c-6806-4ac5-e345-08dbfbc233db",
        "createdDate": "2024-03-04T13:33:33.9731001",
        "createdBy": "PGW",
        "updatedDate": "2024-03-04T13:36:08.5784054",
        "updatedBy": "PGW"
      }
    ],
    "paymentMethod": {
      "type": "Card",
      "brand": "mastercard",
      "cardholderName": "otst-PUT",
      "maskedCardNumber": "512345******0008",
      "expiryDate": {
        "month": 1,
        "year": 39
      }
    },
    "totalAuthorizedAmount": 1850,
    "totalCapturedAmount": 1850,
    "orderSource": "GeideaGateway",
    "paymentBrands": [
      "mastercard"
    ],
    "multiCurrency": {
      "authCurrency": "EGP",
      "authAmount": 1850,
      "settleCurrency": "EGP",
      "settleAmount": 1850
    },
    "isTest": true,
    "deviceId": "f4767e8c-6806-4ac5-e345-08dbfbc233db",
    "gatewayDecision": "ContinueToPay",
    "bankId": "1003",
    "createdDate": "2024-03-04T13:33:33.9731001",
    "createdBy": "PGW",
    "updatedDate": "2024-03-04T13:34:03.1484588",
    "updatedBy": "PGW"
  },
  "responseMessage": "Success",
  "detailedResponseMessage": "The operation was successful",
  "language": "en",
  "responseCode": "000",
  "detailedResponseCode": "000"
}