adityaS011 / ecommerce-clone

Flipkart clone built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. The application replicates some of the core features of the popular e-commerce platform Flipkart.
https://mern-clone-flipkart-p2p.netlify.app
MIT License
16 stars 13 forks source link

payment gateway not working #3

Closed adityaS011 closed 10 months ago

adityaS011 commented 11 months ago

I used paytm payment gateway but want to upgrade to stripe

Shubhamm33 commented 11 months ago

You need to create an account on stripe then add your method there, like subscription method or one time payment, etc. fill all details regarding that and then just use the demo code

i had previously used stripe but used on python backend, i guess its almost same on nodejs they also have a demo card details to check if payment your integration if proper... let me know if i could work on this part

coder483 commented 11 months ago

i can work on this issue

adityaS011 commented 11 months ago

ok you can work on the issue

Shubhamm33 commented 11 months ago

I am getting this issue while connecting to database, it seems in the main server.js file, it takes username and password from .env file which is not present can you please share that? r3

Shubhamm33 commented 11 months ago

Also there are some issues in console, fixing those as well r4

adityaS011 commented 11 months ago

ya sure go ahead

Shubhamm33 commented 11 months ago

have send a pull request for console errors, you can merge it

for payment part, i need a user to login and use the cart currently issues i'm facing are:

last step can be done later while ill work on first 2, please share it once you get time

adityaS011 commented 11 months ago

password:userpassword user: user1 create account and then login

Shubhamm33 commented 11 months ago

Hey, did you create an account on stripe? please send me your stripe API key, once you register there, until then i'll try to add boiler template

adityaS011 commented 11 months ago

sorry for the dealy this is the key: pk_test_51O3kTkSIUaFZhdDEjbbLx2tv9MhrbuiVTYsX618k8Rka1lLyVpJcPznEKbLRP7Qn5JDC2ISbbIgbKYO3VHLoT1DC005WWd139R

Shubhamm33 commented 11 months ago

Hey, no problem, i was busy myself... i'll work on it and be back soon !

Shubhamm33 commented 11 months ago

Hey, i think there's one more key to this as secret key, so basically, secret key will be used on server and publishable key which you sent is used on client side please share that as well

also you need to add products in your stripe account, so that i could reference it on server