v1

latestOpenAPI 3.0.3Apache 2.02026-07-24153058.9 KB

Process a Google Pay transaction.

post/gateway/remote.json

Request body

OR

Example request

{
  "store": 12345,
  "tran": {
    "id": "1236100014",
    "class": "ecom",
    "type": "sale",
    "description": "Google Pay transaction",
    "amount": 1,
    "currency": "AED",
    "method": "googlepay"
  },
  "customer": {
    "name": {
      "forenames": "Test",
      "surname": "User"
    },
    "email": "test@gmail.com",
    "address": {
      "line1": "Address",
      "country": "AE",
      "city": "Dubai"
    },
    "phone": "0123456789"
  },
  "googlepay": {
    "type": "CARD",
    "description": "Visa •••• 1111",
    "info": {
      "cardNetwork": "VISA",
      "cardDetails": "1111",
      "billingAddress": {
        "name": "John Doe",
        "address1": "123 Street Name",
        "city": "Dubai",
        "countryCode": "AE",
        "phoneNumber": "0123456789"
      }
    },
    "tokenizationData": {
      "type": "PAYMENT_GATEWAY",
      "token": "{\"signature\":\"MEYCIQCN...\",\"intermediateSigningKey\":{...},\"protocolVersion\":\"ECv2\",\"signedMessage\":\"{\\\"tag\\\":\\\"...\\\",\\\"ephemeralPublicKey\\\":\\\"...\\\",\\\"encryptedMessage\\\":\\\"...\\\"}\"}"
    }
  }
}

Response

Response

OR

Example response

{
  "trace": "4001/5151/%ea6bba9",
  "transaction": {
    "ref": "040024871559",
    "type": "sale",
    "class": "ECom",
    "status": "D",
    "code": "31",
    "message": "Not authorised"
  },
  "customer": {
    "email": "abcfd@gmail.com",
    "name": {
      "forenames": "Test",
      "surname": "User"
    },
    "address": {
      "line1": "No address",
      "city": "Unknown",
      "country": "AE"
    }
  }
}
All 15 operations