cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with preauthorization in the sandbox

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"
}
]
}

eddie
Member
2 REPLIES 2

Hi, add order billing information.

mateo
Member

Preauthorization in the sandbox is not working properly. It can cause delays and confusion while testing payments. This issue should be fixed so testing becomes smooth and easy.

Umair_Waris
Member