I'm trying to check card validity by using zero amount authorization with Node.js SDK in the sandbox, and there's an error occurred (See below)while attempting to send requests with test card info. Thus, I wanna know whether billing info is required for this operation or not, if so, why can I retrieved the tokens without providing such information(billTo and related properties) few days ago?
========================================
SDK versions: 0.0.45 - 0.0.50
Method: POST
Path: /pts/v2/payments
========================================
Request data
========================================
{
"clientReferenceInformation": {
"code": "20231012195317nokt1"
},
"paymentInformation": {
"card": {
"number": "************1111",
"expirationMonth": "01",
"expirationYear": "2024"
}
},
"processingInformation": {
"capture": false,
"actionTokenTypes": [
"paymentInstrument",
"customer"
],
"authorizationOptions": {
"ignoreAvsResult": true
},
"actionList": [
"TOKEN_CREATE"
]
},
"orderInformation": {
"amountDetails": {
"totalAmount": "0",
"currency": "TWD"
}
},
"aggregatorInformation": {
"subMerchant": {
"id": "000"
}
},
"merchantInformation": {
"merchantDescriptor": {
"alternateName": "000"
}
}
}
========================================
Response data
========================================
{
"id": "6971020183236578804953",
"submitTimeUtc": "2023-10-12T09:13:38Z",
"status": "INVALID_REQUEST",
"reason": "INVALID_DATA",
"message": "Declined - One or more fields in the request contains invalid data",
"details": [
{
"field": "orderInformation.billTo.lastName",
"reason": "INVALID_DATA"
}
]
}
10-12-2023 06:21 AM
Hi, add order billing information.
12-28-2023 05:38 AM