2

I am currently following a tutorial on how to build a web commerce website (His GitHub: https://github.com/adrianhajdin/project_e_commerce) and I am getting this error when submitting data:

enter image description here

and looking at the response I see this:

enter image description here

I haven't got a clue what this means and been stuck for at least 3 hours trying to fix this.

The stripe payment is actually logging it as a successful logs.

enter image description here

But within Commerce JS it detects the errors:

enter image description here

enter image description here

Eduards
  • 1,734
  • 2
  • 12
  • 37

1 Answers1

0

Check the information of the orderData object, something must have been misspelled, as suggested by the error "The given data was invalid". In my case the problem was that the instructor indicated to access the property of the shippingObject as "address1", but I had that property defined as "address" without the number 1, enough to give me a delay of 20+ minutes, watch out for that and check carefully your orderData object

Joan Gavelán
  • 91
  • 1
  • 3