chec / cli

A command line interface for using the Chec API
https://chec.io
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

HTTP ERROR [422] . The given data was invalid. #39

Closed evans123456 closed 3 years ago

evans123456 commented 3 years ago

Hope you are well, I'm new to commerce.js and I've been trying to create a capture of the cart, so as to get the payment confirmation. My API is being called as below.

image

the orderData variable is as below

image

the error am getting

image

please help. Thanks

ScopeyNZ commented 3 years ago

Hi Wahome. This issue looks like it's more suited for chec/commerce.js. A 422 error returned (in your network tab) provides more advice on what the problem is. Please refer to the error there. Also, feel free to join our Slack and ask for further help there: http://slack.commercejs.com