-
Notifications
You must be signed in to change notification settings - Fork 683
Orders page is not opening on clicking buy now #12
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
Comments
`import React, { useEffect, useState } from 'react' function Payment () { const stripe = useStripe() const [succeeded, setSucceeded] = useState(false) useEffect(() => { console.log('THE SECRET IS >>>', clientSecret) const handleSubmit = async (event) => {
} const handleChange = event => { return (
|
Hello, did you fix it? if yes, let me know how please |
@shivasinghal2000 Did you fix this error ? |
@shivasinghal2000 Did you fix this error |
@shivasinghal2000 hey are you able to do the payment and rendering orders page? Please help if you already fixed it |
did you fix this ? |
guys if you are facing issue regarding payments then try doing debugging using stripe account when you try to make a payment see what kind of error you are getting and also try console logging the client secret majorly i faced issue during the payment are is you have to use metadata when you are trying to make an paymentintent
and we have to use useNavigate instead of useHistory |
I am facing exactly the same problem, the buy now button is stuck on Processing and not navigating to the Orders page. I did replace the replacehistory ('/orders') line of code with navigate('/orders').If anyone figured out the solution i would appreciate it. |
After clicking on buy now button it is showing processing only
The text was updated successfully, but these errors were encountered: