Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting INVALID_REQUEST error when doing checkout with stored card and with PayerAuth enabled #12

Open
apponsforce opened this issue Jun 28, 2024 · 1 comment

Comments

@apponsforce
Copy link

The error received & displayed in the web page is as follows. Error is the same independent of whether SCA is enabled or disabled.

{"readyState":4,"responseText":"{\n \"action\": \"CheckoutServices-PlaceOrder\",\n \"queryString\": \"\",\n \"locale\": \"default\",\n \"tracking_consent\": true,\n \"csrf\": {\n \"tokenName\": \"csrf_token\",\n \"token\": \"TOKEN-STRING"\n },\n \"error\": {\n \"errorText\": \"Error: {\\\"id\\\":\\\"7195933326806200804953\\\",\\\"submitTimeUtc\\\":\\\"2024-06-28T16:48:52Z\\\",\\\"status\\\":\\\"INVALID_REQUEST\\\",\\\"reason\\\":\\\"MISSING_FIELD\\\",\\\"message\\\":\\\"Declined - The request is missing one or more fields\\\",\\\"details\\\":[{\\\"field\\\":\\\"paymentInformation.card.number\\\",\\\"reason\\\":\\\"MISSING_FIELD\\\"},{\\\"field\\\":\\\"paymentInformation.card.expirationMonth\\\",\\\"reason\\\":\\\"MISSING_FIELD\\\"},{\\\"field\\\":\\\"paymentInformation.card.expirationYear\\\",\\\"reason\\\":\\\"MISSING_FIELD\\\"}]} (int_cybs_sfra_base/cartridge/scripts/http/payerAuthentication.js#107)\",\n \"controllerName\": \"CheckoutServices\",\n \"startNodeName\": \"Start\"\n },\n \"message\": \"For technical reasons, your request could not be handled properly at this time. We apologize for any inconvenience.\"\n}", ...

@appanp-tjs
Copy link

The backend service request/response traces are provided below:

[2024-08-29 17:43:53.828 GMT] INFO PipelineCallServlet|994447314|Sites-RefArch-Site|CheckoutServices-PlaceOrder|PipelineCall|WYvDNLB7az custom.service.PaymentHttpService.COMM [] Webservice Communication: PaymentHttpService (POST https://apitest.cybersource.com/risk/v1/authentication-setups), 117 ms

[2024-08-29 17:43:53.829 GMT] INFO PipelineCallServlet|994447314|Sites-RefArch-Site|CheckoutServices-PlaceOrder|PipelineCall|WYvDNLB7az custom.service.PaymentHttpService.COMM [] Request: {"clientReferenceInformation":{"code":"00000402","partner":{"solutionId":"2TLC4V9R","developerId":null}},"processingInformation":{"commerceIndicator":"internet"},"paymentInformation":{"customer":{},"card":{"securityCode":null,"typeSelectionIndicator":"1"}}}

[2024-08-29 17:43:53.829 GMT] INFO PipelineCallServlet|994447314|Sites-RefArch-Site|CheckoutServices-PlaceOrder|PipelineCall|WYvDNLB7az custom.service.PaymentHttpService.COMM [] Response: {"id":"7249534337256398704953","submitTimeUtc":"2024-08-29T17:43:53Z","status":"INVALID_REQUEST","reason":"MISSING_FIELD","message":"Declined - The request is missing one or more fields","details":[{"field":"paymentInformation.card.number","reason":"MISSING_FIELD"},{"field":"paymentInformation.card.expirationMonth","reason":"MISSING_FIELD"},{"field":"paymentInformation.card.expirationYear","reason":"MISSING_FIELD"}]}
[2024-08-29 17:43:53.829 GMT] ERROR PipelineCallServlet|994447314|Sites-RefArch-Site|CheckoutServices-PlaceOrder|PipelineCall|WYvDNLB7az custom.service.PaymentHttpService.HEAD [] service=PaymentHttpService status=ERROR errorCode=400 errorMessage={"id":"7249534337256398704953","submitTimeUtc":"2024-08-29T17:43:53Z","status":"INVALID_REQUEST","reason":"MISSING_FIELD","message":"Declined - The request is missing one or more fields","details":[{"field":"paymentInformation.card.number","reason":"MISSING_FIELD"},{"field":"paymentInformation.card.expirationMonth","reason":"MISSING_FIELD"},{"field":"paymentInformation.card.expirationYear","reason":"MISSING_FIELD"}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants