project_e_commerce icon indicating copy to clipboard operation
project_e_commerce copied to clipboard

Error: The given data was invalid.

Open Paul-Okello opened this issue 4 years ago • 12 comments

While trying to process a transaction on the checkout the above error is shown

Paul-Okello avatar Dec 09 '20 07:12 Paul-Okello

How do i clean up after the useEffect because it is causing a memory leak in the application

Paul-Okello avatar Dec 09 '20 07:12 Paul-Okello

While trying to process a transaction on the checkout the above error is shown

were you able to fix this? If you did, how did you go about it?

wordpressperson avatar Jan 02 '21 16:01 wordpressperson

I had this same issue. Make sure that you haven't set 'Require Billing Address ' or 'Require Full Name' in your products page on Commerce.js.

image

db-ctrl avatar Jan 28 '21 22:01 db-ctrl

How do i clean up after the useEffect because it is causing a memory leak in the application

Have you solved this issue? I am facing the same problem..

noorfaiqah avatar Mar 13 '21 17:03 noorfaiqah

I had this same issue. Make sure that you haven't set 'Require Billing Address ' or 'Require Full Name' in your products page on Commerce.js.

I have the same problem and neither are required, yet it still doesn't work. Anyone come up with a different solution?

MicasiO avatar Mar 20 '21 16:03 MicasiO

I had this same issue. Make sure that you haven't set 'Require Billing Address ' or 'Require Full Name' in your products page on Commerce.js.

I have the same problem and neither are required, yet it still doesn't work. Anyone come up with a different solution?

try viewing the log on commercejs

noorfaiqah avatar Mar 22 '21 17:03 noorfaiqah

Hi, guys. I have the same issue with you. But I have solved the problem. Please check on orderData object on PaymentForm.jsx. make sure you write object attributes correctly.

novanopstudio avatar Apr 20 '21 08:04 novanopstudio

I had the same problem. The issue was that I mixed up my Stripe and CommerceJs APIKeys. Make sure that when you enable Stripe you use both API keys from their interface.

ckbrown456 avatar May 02 '21 05:05 ckbrown456

I am getting a same error but when I look at the response. I get the following error:

image

GeminiDev1 avatar May 08 '21 20:05 GeminiDev1

Hi! Everyone who has had a problem with this. Are can see the pull request that I made. The Controller must be corrected because there were some modifications in the react-hook-form.

fedelombar avatar Jun 01 '21 13:06 fedelombar

May I know what kind of react-hook-form modification is needed?

noorfaiqah avatar Jun 01 '21 17:06 noorfaiqah

anybody end up figuring out a solution? none of these have worked for me

amenohix avatar Dec 18 '21 01:12 amenohix