Re: errorCode : 400

YuryEdson
Regular Visitor

errorCode : 400

D/OkHttp: --> POST https://apitestenv.vnforapps.com/api.ecommerce/v2/ecommerce/token/transaction http/1.1
Content-Type: application/json; charset=utf-8
Content-Length: 538
VisaNet-Session-Key: e6f123133d65af09c136a6b23ab8ab7a3b113ebeebd51bb41a00be18d25601b4
{"callbackUrl":"https://demo1.vnforapps.com/boton/","card":{"cardAliasName":"yu","cardNumber":"4919148107859067","cv... Edson","lastName":"Callupe Huerta","phoneNumber":""},"merchantId":"101039934","order":{"amount":15.22,"billingAddress":{"city":"","country":""},"currency":"PEN","installment":1,"purchaseNumber":"1796"}}
--> END POST (538-byte body)
--> POST https://apitestenv.vnforapps.com/api.ecommerce/v2/ecommerce/token/transaction http/1.1 (538-byte body)
D/OkHttp: <-- 400 https://apitestenv.vnforapps.com/api.ecommerce/v2/ecommerce/token/transaction (2971ms, 81-byte body)
<-- 400 https://apitestenv.vnforapps.com/api.ecommerce/v2/ecommerce/token/transaction (2972ms)
date: Tue, 30 Apr 2019 16:58:27 GMT
content-type: application/json;charset=utf-8
content-length: 81
x-powered-by: Undertow/1
access-control-allow-headers: origin, content-type, accept, authorization, visanet-session-key
server: WildFly/9
access-control-allow-origin: *
access-control-allow-credentials: true
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS, HEAD


D/OkHttp: {"errorCode":400,"errorMessage":"Installment information is not valid","data":{}}
<-- END HTTP (81-byte body)
D/VisaNet: onError errorCode : 400
onError errorBody : {"errorCode":400,"errorMessage":"Installment information is not valid","data":{}}
onError errorDetail : responseFromServerError

P.D.: App developed (Android Studio) 

2 REPLIES 2
vkamboj
Community Moderator

Re: errorCode : 400

Hello @YuryEdson

 

The error message you received below is not a VDP endpoint. Can you please confirm from which portal did you consume the below endpoint?

 

Thank you, 

Vaibhav 

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
ricardo_visa
Community Scholar

Re: errorCode : 400

@YuryEdson - did you figure this out?




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.