PaymentMethod
Request
Path Parameters
aid
string
Required
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`
Query Parameters
merchantTransID
string
Example: {merchantTransID of paymentMethod}
token
string
Example: {tokenValue of paymentMethod}
Request Body schema
authentication
object
Cardholder authentication information
This field must be sent when previous response is result.code = S0005
metadata
string<= 512 characters
Remarks Information
paymentMethod
object
This field must be sent while updating the Token information
Responses
200
PUT
/g2/v0/payment/acq/{aid}/evo.e-commerce.paymentMethodTry it
Server
https://hkg-uat-online.everonet.com
Path Parameters
Header Parameters
Query Parameters
Request Body Parameters
Request Samples
cURL
curl -i -X PUT \
'https://hkg-uat-online.everonet.com/g2/v0/payment/acq/{aid}/evo.e-commerce.paymentMethod?merchantTransID=%7BmerchantTransID+of+paymentMethod%7D&token=%7BtokenValue+of+paymentMethod%7D' \
-H 'Content-type: application/json' \
-H 'DateTime: string' \
-H 'MsgID: string' \
-H 'SignType: string' \
-d '{
"authentication": {
"threeDS": {
"redirectData": {
"cres": "string",
"threeDSComplnd": "string",
"threeDSFinished": "string"
}
}
},
"metadata": "string",
"paymentMethod": {
"card": {
"cardInfo": {
"cvc": "string",
"expiryDate": "string"
},
"cardInfoEncryptMethod": "string",
"encryptedCardInfo": "string"
},
"payerReference": "string",
"tokenValidDays": "string",
"type": "string"
}
}'JavaScript
const query = new URLSearchParams({
"merchantTransID": "{merchantTransID of paymentMethod}",
"token": "{tokenValue of paymentMethod}"
}).toString()
const aid = 'YOUR_aid_PARAMETER';
fetch(
`https://hkg-uat-online.everonet.com/g2/v0/payment/acq/${aid}/evo.e-commerce.paymentMethod?${query}`,
{
method: 'put',
headers: {
'Content-type': 'application/json',
'DateTime': 'string',
'MsgID': 'string',
'SignType': 'string'
},
body: '{
"authentication": {
"threeDS": {
"redirectData": {
"cres": "string",
"threeDSComplnd": "string",
"threeDSFinished": "string"
}
}
},
"metadata": "string",
"paymentMethod": {
"card": {
"cardInfo": {
"cvc": "string",
"expiryDate": "string"
},
"cardInfoEncryptMethod": "string",
"encryptedCardInfo": "string"
},
"payerReference": "string",
"tokenValidDays": "string",
"type": "string"
}
}'
})
.then(response => response.json())
.then(data => console.log(data));Response Samples
200
application/json
json

