There is some issue with the order screen, instead of showing order for particular user, it is showing orders of every user. I have even cross checked with your deployed app.
Found the error, in orderAction at line 29 there is no such property as currentUser._id, thus userid contains undefined, instead we could set userid = currentUser.email to get the his own order.
if we send in billing and shipping manually, it overrides billing address. Doesn't console shipping address.. how to overcome this in react stripe checkout?
Sir local storage ki jagha Cookie Parser use kara karo ya phir Passport use kiya karo. Reason in Localstorage if two users logged vai same browser on same system both user can access each others data
hi sir I completed till now but one thing is missing,. when my payment successful in my database all information going but but cartItems showing like this ->cartItems : Arrey... in my database I have checked in orderRoutes everything looks ok Cart Items showing in local store also console it it's showing ok but why my cart is not push in my mongoDB.. please reply
and one thing if I do with other username add to cart all information showing in order page how can I prevent it.. example:- if I order from dummy 1 user and after logout if I order dummy 2 user but when I see in orders page it's showing all orders... I think I need to do by using _id but how to do i don't know
sir can I get source code of orders modle I'm getting Data in network as cart items but it's not going in Mongo db .... i have used orderItems :[. ] like this in order file i gess there is some problem maybe
@@TechinfoYT ya it's done . Now thanks for responding ☺️ i was missing key name instead of capital I. ,,,. I had used small i that is why but it took me 2 days to find 😀😀
Cross check action n reducer function ...make sure it's false on success call ...check in redux dev tool try if still not resolved than I'll connect with anyDesk
sir i am stuck even copy the code from source code but its shows in reducer dev tool placeOrderReducer loading:false and also in console Error: Request failed with status code 400 at createError (createError.js:16:1) at settle (settle.js:17:1) at XMLHttpRequest.handleLoad (xhr.js:62:1) help also send screenshot on insta check
Maybe it's a stripe payment api issue please check in the network tab is an error message like payment charges api no longer supported in India ? If yes please use payment intent api follow official strip doc for reference or copy paste code in Google you will get solution 🙏
There is some issue with the order screen, instead of showing order for particular user, it is showing orders of every user. I have even cross checked with your deployed app.
Found the error, in orderAction at line 29 there is no such property as currentUser._id, thus userid contains undefined, instead we could set userid = currentUser.email to get the his own order.
@@piyushgupta9344 Hi ,i try but same as before i am getting all orders .please help me to solve the problem
Great videos. Going with the flow. Keep making such awesome tutorials.
Thank you brother ☺️
if we send in billing and shipping manually, it overrides billing address. Doesn't console shipping address.. how to overcome this in react stripe checkout?
Sir local storage ki jagha Cookie Parser use kara karo ya phir Passport use kiya karo. Reason in Localstorage if two users logged vai same browser on same system both user can access each others data
Ok buddy I'll remember next time 😉🤛🏻
style={{height:'100px',width:'100px',marginLeft:'592px',marginTop:'268px'}} i put this style into the LOADER component and the spinner comes in center
i have watched another tutorial of eccomerce where payment gateway is not shown can i watch it and integrate in my eccomerce website?
Yes You can clone or update code
Sir how to fix this issues : invalid_request_error
You cannot accept payments using this API as it is no longer supported in India.
Instead of payment charges api Use payment intent api
Payment charges api currently not working
i'm getting incomplete in stripe payment dashboard , it says the customer has not entered payment method
Compare code from resources 🙏
@@TechinfoYT where can I get code
sir , stripe dashboard m status incompelete aa raha h , payment intents use krne ke baad bhi, kuch 3D secure required aa raha h help kr dijiye pls
Please follow stripe official documentation
@@TechinfoYT try kia but bahut confusion ho rahi h aap kuch suggest kr dijiye
@@amitshankhwar2542 Hey !!! Koi solution mila kya iska
@@NikhilSingh-c8o han payment intents api we Jo client secret milega use confirmcard payment api use krke frontend she verify kr do ho jaaega
@@NikhilSingh-c8o pr mujhe stripe we accha razorpay laga toh Maine vo integrate kiya h vo zada aasan h
hi sir I completed till now but one thing is missing,. when my payment successful in my database all information going but but cartItems showing like this ->cartItems : Arrey... in my database I have checked in orderRoutes everything looks ok Cart Items showing in local store also console it it's showing ok but why my cart is not push in my mongoDB.. please reply
and one thing if I do with other username add to cart all information showing in order page how can I prevent it.. example:- if I order from dummy 1 user and after logout if I order dummy 2 user but when I see in orders page it's showing all orders... I think I need to do by using _id but how to do i don't know
sir can I get source code of orders modle I'm getting Data in network as cart items but it's not going in Mongo db .... i have used orderItems :[. ] like this in order file i gess there is some problem maybe
Compare your code from source code
@@TechinfoYT ya it's done . Now thanks for responding ☺️ i was missing key name instead of capital I. ,,,. I had used small i that is why but it took me 2 days to find
😀😀
Sir stripe connection timeout error aa rha h...order route setup krne k baad
Please follow stripe official documentation
AWESOME
Thank you 😊
sir i am getting this your key is invalid it contains white spaces how i can solve it pllzzz tell me
Whitespace mean there Is an extra blank spaces in your key... send error pic on Instagram
stripe is not work in india so what should i do
Try strip intent api
where@@TechinfoYT
the stripe intent work but the payment staus is not succes so what should i do@@TechinfoYT
After order placed request its continue loading
Cross check action n reducer function ...make sure it's false on success call ...check in redux dev tool try if still not resolved than I'll connect with anyDesk
hello sir, my payments in stripe is still showing incomplete, i have sent you my code on instagram please check
Maybe it's that payment intent api issue we have to check its request and response object
sir i am stuck even copy the code from source code but its shows in reducer dev tool placeOrderReducer loading:false and also in console Error: Request failed with status code 400
at createError (createError.js:16:1)
at settle (settle.js:17:1)
at XMLHttpRequest.handleLoad (xhr.js:62:1)
help also send screenshot on insta check
Maybe it's a stripe payment api issue please check in the network tab is an error message like payment charges api no longer supported in India ? If yes please use payment intent api follow official strip doc for reference or copy paste code in Google you will get solution 🙏
Same you get any solution?plz send me
@@TechinfoYT its helped here is the code if anyone needed
const paymentIntent = await stripe.paymentIntents.create({
amount:subTotal*100,
currency:'inr',
customer:customer.id,
receipt_email:token.email
},{
idempotencyKey:uuidv4()
})
if(paymentIntent)
{
res.send('PAYMENT SUCCESS')
}
else{
res.send('PAYMENT FAILED')
}
@@nevilmistry740 bro I have this error. do you know what changes are necessary
please let me know
same error please help
POST /api/orders/placeorder 400 1415.341 ms - 564 this error is comming
Inspect and check in the network tab of that api request preview and response
@@TechinfoYT 400 error
Check its response tab and you'll get an error message there
@@TechinfoYT "error": "Error: You cannot accept payments using this API as it is no longer supported in India. Pl
I have solved the error by using Intent API. Thanks :)