Skip to content

Asynchronous notification for PaymentMethod

Request

Header Parameters

Content-type
string
Fixed value application/json
DateTime
string
Request time, The format is `YYYY-MM-DDThh:mm:ssZhh:00` such as` 2020-03-04T15:39:40Z08:00`.
MsgID
string
The suggested value is UUID or GUID to mark this request, such `2d21a5715c034efb7e0aa383b885fc7a`, Do not exceed 32 characters in length;
SignType
string
Algorithm for calculating signatures.`SHA256` or `SHA512`

Request Body schema

eventCode
string
Required
Notification type, with a value of “PaymentMethod”.
metadata
string<= 512 characters
Attachment information
paymentMethod
object
This field includes the Payment Method information
pendingEvents
array
Indicates the authentication events that the current Token can perform
Try it
Server
https://hkg-uat-online.everonet.com
Header Parameters
Request Body Parameters
Request Samples
cURL
curl -i -X POST \
'https://hkg-uat-online.everonet.com/Payment_method_webhook' \
 -H 'Content-type: application/json' \
 -H 'DateTime: string' \
 -H 'MsgID: string' \
 -H 'SignType: string' \
 -d '{
  "eventCode": "string",
  "metadata": "string",
  "paymentMethod": {
    "card": {
      "cardInfoEncryptMethod": "string",
      "first6No": "string",
      "fundingType": "string",
      "holderName": "string",
      "isCommercial": true,
      "issuerCountry": "string",
      "issuingBank": "string",
      "issuingCountry": "string",
      "last4No": "string",
      "paymentBrand": "string",
      "updatedCardInfo": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "networkToken": {
      "expiryDate": "string",
      "first6No": "string",
      "last4No": "string",
      "paymentAccountReference": "string",
      "paymentBrand": "string",
      "status": "string",
      "tokenID": "string",
      "tokenReferenceID": "string",
      "value": "string"
    },
    "paymentAccountReference": "string",
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "status": "string",
    "token": {
      "createTime": "string",
      "fingerprint": "string",
      "status": "string",
      "updateTime": "string",
      "value": "string"
    }
  },
  "pendingEvents": [
    {
      "action": {
        "redirectData": {
          "method": "string",
          "url": "string"
        },
        "type": "string"
      },
      "eventMethod": "string",
      "eventType": "string"
    }
  ]
}'
JavaScript
fetch(
`https://hkg-uat-online.everonet.com/Payment_method_webhook`,
{
  method: 'post',
  headers: {
  'Content-type': 'application/json',
  'DateTime': 'string',
  'MsgID': 'string',
  'SignType': 'string'
},
  body: '{
  "eventCode": "string",
  "metadata": "string",
  "paymentMethod": {
    "card": {
      "cardInfoEncryptMethod": "string",
      "first6No": "string",
      "fundingType": "string",
      "holderName": "string",
      "isCommercial": true,
      "issuerCountry": "string",
      "issuingBank": "string",
      "issuingCountry": "string",
      "last4No": "string",
      "paymentBrand": "string",
      "updatedCardInfo": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "networkToken": {
      "expiryDate": "string",
      "first6No": "string",
      "last4No": "string",
      "paymentAccountReference": "string",
      "paymentBrand": "string",
      "status": "string",
      "tokenID": "string",
      "tokenReferenceID": "string",
      "value": "string"
    },
    "paymentAccountReference": "string",
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "status": "string",
    "token": {
      "createTime": "string",
      "fingerprint": "string",
      "status": "string",
      "updateTime": "string",
      "value": "string"
    }
  },
  "pendingEvents": [
    {
      "action": {
        "redirectData": {
          "method": "string",
          "url": "string"
        },
        "type": "string"
      },
      "eventMethod": "string",
      "eventType": "string"
    }
  ]
}'
})
  .then(response => response.json())
  .then(data => console.log(data));
Response Samples
*/*
json