Dear All,
I am receiving the following error while I am trying to use:
Visa Payments Processing API
Authorization
Authorizations are requests for approval of card or token based transactions. To clear and settle an approved transaction, you must submit a capture request.
Authorizations v2
URL:
https://sandbox.api.visa.com/acs/v2/payments/authorizations
Request sent:
string(1461) "{"riskAssessmntData":{"traExmptn":"true","delgtdAthntctn":"true","trustdMerchntExmptn":"true","scpExmptn":"true","lowVlExmptn":"true"},"msgIdentfctn":{"correlatnId":"12bc567d90f23e56a8f012","origId":"123451234567890"},"Hdr":{"TracData":{"Val":"anyroundtripinfo","Tp":"AddtnlTraceData"}},"Body":{"Tx":{"AddtlSvc":{"Tp":"DCCV"},"TxAttr":"RCPT","TxDesc":"transactiondescription","TxId":{"LocalDateTime":"2021-04-06T20:15:07"},"AddtlData":{"Val":"freeformdata","Tp":"freeFormDescrptnData"},"AltrnMsgRsn":"2501","SpclPrgrmmQlfctn":{"Dtls":{"Val":"Y","Nm":"CPS"}},"TxAmts":{"TxAmt":{"Ccy":"840","Amt":"123.45"}}},"Envt":{"Accptr":{"AddtlId":"52014057","CstmrSvc":"1 4155552235","SpnsrdMrchnt":{"Id":{"Id":"520140578465770"}},"ShrtNm":"ABC Supplies","AddtlData":{"Val":"42999952606","Tp":"ISOid"},"Id":"0123456789012345678901234567893","Adr":{"Ctry":"US"}},"Termnl":{"TermnlId":{"Id":"52014057"}},"Wllt":{"Prvdr":{"Id":"VCIND"}},"Card":{"XpryDt":"2212","PAN":"4234567890123456"}},"Cntxt":{"Vrfctn":[{"VrfctnInf":{"Val":{"TxtVal":"321"}},"Tp":"CSCV"}],"TxCntxt":{"MrchntCtgyCd":4814,"MrchntCtgySpcfcData":"B"},"PtOfSvcCntxt":{"MOTOInd":"true","PrtlApprvlSpprtd":"true","SpclConds":{"Id":"2"},"CardDataNtryMd":"CDFL","EComrcData":[{"Val":"5","Tp":"ECI"},{"Val":"EEC4567F90123A5678B0123EA67890D2345678FF","Tp":"XID"}]},"RskCntxt":{"RskInptData":{"Val":"10.203.123.456","Tp":"IPAddr"},"RskAssmnt":{"RskAssmntTp":"VCAS","Rslt":"9"}},"SaleCntxt":{"GoodsAndSvcsTp":"ELEC"}}}}"
response received:
{"errorResponse":{"details":{"message":"Error in processing request, Please Contact Visa Inc."},"status":404}}
Please advice,
Thank you in advance,
Paul
Solved! Go to Solution
Hi @ep_dev,
Can you please confirm that you are encrypting the request payload with your Message Level Encryption (MLE) credentials?
Also, can you please provide the following information so we can investigate further? Thanks.
Hi Stacey,
Thank you for your reply.
Currently I am sending the following header:
Host: sandbox.api.visa.com Content-Type: application/json Accept: application/json keyId: 6ee4546d-b195-47a4-a681-181fc6888b63 Authorization: Basic UFcyTTNQSllHT1pRVkxKU0szM1IyMThNMUpTSWR1UTJVakVIUlhxclVRTWhBN3ZmdzpRbGN6VllIV1oxdkYzMEl6MTk4MmhVeDJYNW00UQ== Content-Length: 2491 Expect: 100-continue
Body:
"{"riskAssessmntData":{"traExmptn":"true","delgtdAthntctn":"true","trustdMerchntExmptn":"true","scpExmptn":"true","lowVlExmptn":"true"},"msgIdentfctn":{"correlatnId":"12bc567d90f23e56a8f012","origId":"123451234567890"},"Hdr":{"TracData":{"Val":"anyroundtripinfo","Tp":"AddtnlTraceData"}},"Body":{"Tx":{"AddtlSvc":{"Tp":"DCCV"},"TxAttr":"RCPT","TxDesc":"transactiondescription","TxId":{"LocalDateTime":"2021-04-06T20:15:07"},"AddtlData":{"Val":"freeformdata","Tp":"freeFormDescrptnData"},"AltrnMsgRsn":"2501","SpclPrgrmmQlfctn":{"Dtls":{"Val":"Y","Nm":"CPS"}},"TxAmts":{"TxAmt":{"Ccy":"840","Amt":"123.45"}}},"Envt":{"Accptr":{"AddtlId":"52014057","CstmrSvc":"1 4155552235","SpnsrdMrchnt":{"Id":{"Id":"520140578465770"}},"ShrtNm":"ABC Supplies","AddtlData":{"Val":"42999952606","Tp":"ISOid"},"Id":"0123456789012345678901234567893","Adr":{"Ctry":"US"}},"Termnl":{"TermnlId":{"Id":"52014057"}},"Wllt":{"Prvdr":{"Id":"VCIND"}},"Card":{"XpryDt":"2212","PAN":"4234567890123456"}},"Cntxt":{"Vrfctn":[{"VrfctnInf":{"Val":{"TxtVal":"321"}},"Tp":"CSCV"}],"TxCntxt":{"MrchntCtgyCd":4814,"MrchntCtgySpcfcData":"B"},"PtOfSvcCntxt":{"MOTOInd":"true","PrtlApprvlSpprtd":"true","SpclConds":{"Id":"2"},"CardDataNtryMd":"CDFL","EComrcData":[{"Val":"5","Tp":"ECI"},{"Val":"EEC4567F90123A5678B0123EA67890D2345678FF","Tp":"XID"}]},"RskCntxt":{"RskInptData":{"Val":"10.203.123.456","Tp":"IPAddr"},"RskAssmnt":{"RskAssmntTp":"VCAS","Rslt":"9"}},"SaleCntxt":{"GoodsAndSvcsTp":"ELEC"}}}}"
Response Header:
[HTTP/1.1 100 Continue HTTP/1.1 404 Not Found Server: nginx Date: Thu, 08 Apr 2021 13:33:32 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 676 Connection: keep-alive X-SERVED-BY: l73c012 X-CORRELATION-ID: 1617888811_400_640054947_l73c012_VDP_WS X-APP-STATUS: 404 X-APP-STATUS: 404 Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0 ,-1 ,-1 X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=2592000;includeSubdomains encrypted: true Content-Language: en-US
Encrypted response:
{"encData":"eyJjdHkiOiJhcHBsaWNhdGlvblwvanNvbjtjaGFyc2V0PVVURi04IiwiZW5jIjoiQTEyOEdDTSIsImlhdCI6MTYxNzg4ODgxMjA2MiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.ka81A0gNcP56zsMKcbkw6zwM3OvPxUuN5PHGyX3z5wKs2QfXowOdDG2nU1rxMe_uWs4JQygYECVK9ptWzx2wWk8ZcdmXbuB9Ks8hELF4ZmbJSqRI1aWKeMXu5_d53F071N1Es4enqM4psGDHkILbuTOGP1p19Nvc2D4F7mkGPJS_PApWiuS7TkJK0Mf6XGyXaMHNo6SFsli1pTWB68iHKRY6mCRwzCNM9o3OIRS5KiqclMdLRmTyUMT7cek0Z0PKhlgxgToAyYPhNT6sHMDXXdF0SxJ8XONedZVKfnjG2514fM6NtnEYxwSkviGvYPlbgyGQK5OY81HtGaEHXthlOQ.ixjKjqvsmtqcM1XA.rDFMql5fSABc5g-Z8UzhmrpXIUfQNILTHOvPHvbqgxnQdxQzwfWwVWSzbJFB__SSf5hKwuCiwxXHQO8X0f_s4nqN9DFUDq5REtjZuJYIyfN0GgcN9HxlYrxlncn3nf0ZwZh2yr5yOkkGxS-Qtb8.-p5xP9wVbbyMAPJsfGROfA"}]
Decrypted response:
{"errorResponse":{"details":{"message":"Error in processing request, Please Contact Visa Inc."},"status":404}}
I am using:
https://sandbox.api.visa.com/acs/v2/payments/authorizations
Thank you,
Paul
Hi @ep_dev,
Thank you for providing additional details on the issue, this is very helpful. Our tech team is currently investigating and I'll get back with an update as soon as I have one. Thanks.
Hi @ep_dev,
I am still waiting for the VPP API product team to provide me with a working payload to use in sandbox. I will continue to follow this. Thanks for your patience.
Thank you Stacey.
I really hope they can provide with an answer quickly, in order to be able to continue working on this.
Have a nice weekend,
Paul
Hi Stacey,
Do you have any news?
Thank you,
Paul
Hi @ep_dev,
I apologize that this has been taking a long time to resolve. I’ve escalated and requested for an update from our tech team again today.
If your project is ready to be promoted to the higher environment for extensive testing, I would recommend promoting your project to Certification environment. In Cert, you will be provided with real PANs to test in the live environment. Additionally you will be working with a Visa Implementation Manager directly to resolve any implementation issues.
Thank you Stacey.
I will be waiting one day more. It will be very useful for us to have a test completed before going to certification.
Have a nice day,
Paul