#27 Stripe Payment Gateway Integration and User orders functionality | MERN PROJECT(HINDI/URDU)

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 58

  • @piyushgupta9344
    @piyushgupta9344 2 ปีที่แล้ว

    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.

    • @piyushgupta9344
      @piyushgupta9344 2 ปีที่แล้ว

      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.

    • @rmrtamiltechnology
      @rmrtamiltechnology 2 ปีที่แล้ว

      @@piyushgupta9344 Hi ,i try but same as before i am getting all orders .please help me to solve the problem

  • @irfanghazi7460
    @irfanghazi7460 3 ปีที่แล้ว

    Great videos. Going with the flow. Keep making such awesome tutorials.

    • @TechinfoYT
      @TechinfoYT  3 ปีที่แล้ว

      Thank you brother ☺️

  • @malikadnan7
    @malikadnan7 2 ปีที่แล้ว

    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?

  • @hiyou8833
    @hiyou8833 ปีที่แล้ว

    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

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Ok buddy I'll remember next time 😉🤛🏻

  • @shahnwazansari4601
    @shahnwazansari4601 2 ปีที่แล้ว

    style={{height:'100px',width:'100px',marginLeft:'592px',marginTop:'268px'}} i put this style into the LOADER component and the spinner comes in center

  • @ruizxzx
    @ruizxzx ปีที่แล้ว

    i have watched another tutorial of eccomerce where payment gateway is not shown can i watch it and integrate in my eccomerce website?

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Yes You can clone or update code

  • @rajyadav8415
    @rajyadav8415 ปีที่แล้ว

    Sir how to fix this issues : invalid_request_error
    You cannot accept payments using this API as it is no longer supported in India.

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Instead of payment charges api Use payment intent api
      Payment charges api currently not working

  • @ranuchaubey90
    @ranuchaubey90 2 ปีที่แล้ว

    i'm getting incomplete in stripe payment dashboard , it says the customer has not entered payment method

    • @TechinfoYT
      @TechinfoYT  2 ปีที่แล้ว

      Compare code from resources 🙏

    • @ranuchaubey90
      @ranuchaubey90 2 ปีที่แล้ว

      @@TechinfoYT where can I get code

  • @amitshankhwar2542
    @amitshankhwar2542 ปีที่แล้ว

    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

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Please follow stripe official documentation

    • @amitshankhwar2542
      @amitshankhwar2542 ปีที่แล้ว

      @@TechinfoYT try kia but bahut confusion ho rahi h aap kuch suggest kr dijiye

    • @NikhilSingh-c8o
      @NikhilSingh-c8o ปีที่แล้ว

      ​@@amitshankhwar2542​ Hey !!! Koi solution mila kya iska

    • @amitshankhwar2542
      @amitshankhwar2542 ปีที่แล้ว

      @@NikhilSingh-c8o han payment intents api we Jo client secret milega use confirmcard payment api use krke frontend she verify kr do ho jaaega

    • @amitshankhwar2542
      @amitshankhwar2542 ปีที่แล้ว

      @@NikhilSingh-c8o pr mujhe stripe we accha razorpay laga toh Maine vo integrate kiya h vo zada aasan h

  • @youtubeshowsshorts8183
    @youtubeshowsshorts8183 2 ปีที่แล้ว

    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

    • @youtubeshowsshorts8183
      @youtubeshowsshorts8183 2 ปีที่แล้ว

      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

    • @youtubeshowsshorts8183
      @youtubeshowsshorts8183 2 ปีที่แล้ว

      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
      @TechinfoYT  2 ปีที่แล้ว

      Compare your code from source code

    • @youtubeshowsshorts8183
      @youtubeshowsshorts8183 2 ปีที่แล้ว

      @@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
      😀😀

  • @abdur786_
    @abdur786_ ปีที่แล้ว

    Sir stripe connection timeout error aa rha h...order route setup krne k baad

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Please follow stripe official documentation

  • @dharmeshgohil9375
    @dharmeshgohil9375 3 ปีที่แล้ว

    AWESOME

  • @nawazishali274
    @nawazishali274 3 ปีที่แล้ว

    sir i am getting this your key is invalid it contains white spaces how i can solve it pllzzz tell me

    • @TechinfoYT
      @TechinfoYT  3 ปีที่แล้ว

      Whitespace mean there Is an extra blank spaces in your key... send error pic on Instagram

  • @sarangrishit6431
    @sarangrishit6431 ปีที่แล้ว

    stripe is not work in india so what should i do

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Try strip intent api

    • @sarangrishit6431
      @sarangrishit6431 ปีที่แล้ว

      where@@TechinfoYT

    • @sarangrishit6431
      @sarangrishit6431 ปีที่แล้ว

      the stripe intent work but the payment staus is not succes so what should i do@@TechinfoYT

  • @itsnamanjain243
    @itsnamanjain243 3 ปีที่แล้ว

    After order placed request its continue loading

    • @TechinfoYT
      @TechinfoYT  3 ปีที่แล้ว

      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

  • @khushi-px4fb
    @khushi-px4fb ปีที่แล้ว +1

    hello sir, my payments in stripe is still showing incomplete, i have sent you my code on instagram please check

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Maybe it's that payment intent api issue we have to check its request and response object

  • @devsatendrasingh9090
    @devsatendrasingh9090 2 ปีที่แล้ว

    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

    • @TechinfoYT
      @TechinfoYT  2 ปีที่แล้ว

      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 🙏

    • @nevilmistry740
      @nevilmistry740 2 ปีที่แล้ว

      Same you get any solution?plz send me

    • @shahnwazansari4601
      @shahnwazansari4601 2 ปีที่แล้ว

      @@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')
      }

    • @snehancoghosh7322
      @snehancoghosh7322 2 ปีที่แล้ว

      @@nevilmistry740 bro I have this error. do you know what changes are necessary
      please let me know

    • @khushi-px4fb
      @khushi-px4fb ปีที่แล้ว

      same error please help

  • @khushi-px4fb
    @khushi-px4fb ปีที่แล้ว

    POST /api/orders/placeorder 400 1415.341 ms - 564 this error is comming

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Inspect and check in the network tab of that api request preview and response

    • @khushi-px4fb
      @khushi-px4fb ปีที่แล้ว

      @@TechinfoYT 400 error

    • @TechinfoYT
      @TechinfoYT  ปีที่แล้ว

      Check its response tab and you'll get an error message there

    • @khushi-px4fb
      @khushi-px4fb ปีที่แล้ว

      @@TechinfoYT "error": "Error: You cannot accept payments using this API as it is no longer supported in India. Pl

    • @khushi-px4fb
      @khushi-px4fb ปีที่แล้ว

      I have solved the error by using Intent API. Thanks :)