Build an Ecommerce Website with Django // Part 6 - Handling payments with Stripe

  Рет қаралды 32,446

Matt Freire

Matt Freire

Күн бұрын

Пікірлер: 91
@savannahgilmour2325
@savannahgilmour2325 5 жыл бұрын
Best Django channel out there !
@stiginstarview
@stiginstarview 4 жыл бұрын
when i got the invalid parameter error these are the things that i checked and get the stripe to work . 1. create a stripe account and activate and get the public and private key then pass the private key as import stripe stripe.api_key = settings.STRIPE_PRIVATE_KEY" # stores the private key in setting and import it. 2. find out if the token is passing through from the client side to server. ( used print() to find out if im getting anything. if not its a problem in the client side. check your payment.html and see if the js codes in the script is correct 3. use the stripe console log through your created account and see what kinda error you are getting . # for me it was the token not getting through the client side . # the i got region specific error saying " BY INDIAN regulations i had to send shipping address and item description " you can find it in the Stripe Docs. hope this will help someone .. Peace ✌🏽✌🏽✌🏽✌🏽
@kiranraj-dw5gq
@kiranraj-dw5gq 4 жыл бұрын
woww...thanks for the lesson. Love the music at the end of the videos:-)..For few over thinking souls like me : If you think the Order items count is reflecting in your new order. Dont worry He solves it in next Video
@olaniyioluseun8250
@olaniyioluseun8250 5 жыл бұрын
Great tutorial for people who have fair background of the framework. Lots of pieces of ideas for those working on other projects but stuck, like ME!
@khamdamov
@khamdamov 5 жыл бұрын
You rock man, thanks for your effort. Keep going. Please make a video on deployment at the and of this series.
@1972PANI
@1972PANI Жыл бұрын
Hello, I am carrying out the project and at the moment I implement payments with Stripe, when I run the project in the browser, the Stripe form does not display correctly and errors appear in the console indicating that the form cannot be loaded from the element of Stripe by CORS..
@wahyuhendri9248
@wahyuhendri9248 5 жыл бұрын
This is what I really need man, thank you! Great efforts!!
@atitacharya6423
@atitacharya6423 5 жыл бұрын
please can you add the ER diagram for this project to understand the flow of the code Looking for your response. Thank you so much for this awesome video
@kray85
@kray85 4 жыл бұрын
Has anyone encountered this error. The view core.views.PaymentView didn't return an HttpResponse object. It returned None instead."
@nobelfood3.6m17
@nobelfood3.6m17 4 жыл бұрын
i think you @KRay forget... return redirect("/") in try block or excepts blocks
@ИгорьНовиков-в2я
@ИгорьНовиков-в2я 5 жыл бұрын
will you add the ability to choose the size and color for the product?
@ahmedkhairy482
@ahmedkhairy482 4 жыл бұрын
how did you add the size and color ?
@EddyCaffrey
@EddyCaffrey 5 жыл бұрын
This serie is so good. Thank
@oldelkhot
@oldelkhot 5 жыл бұрын
Still 'Not authenticated payment' Is these three lines are right: def userprofile_receiver(sender, instance, created, *args, **kwargs): if created: userprofile = UserProfile.objects.create(user=instance) post_save.connect(userprofile_receiver, sender=settings.AUTH_USER_MODEL) ??
@MhadiAhmed
@MhadiAhmed 5 жыл бұрын
hi thanks for the lesson am facing a problem when am trying to submit my payment to stripe it's telling me that is there is "Not Authenticated" coming form this part of the code except stripe.error.AuthenticationError as e: messages.warning(self.request, "Not Authenticated") return redirect("core:home") I have registered with them and use my own API key but still the same thing waiting for your answer thanks
@AMC-throwaway
@AMC-throwaway 5 жыл бұрын
@@abhikb I have tried all of that as well as trying the pub key, tried copying and pasting his code 100% and tried typing myself but still getting invalid params
@AMC-throwaway
@AMC-throwaway 5 жыл бұрын
@@abhikb If i understand you correctly you left in "var stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx'); " which is the one on stripes doc page, that still gives me invalid params
@AMC-throwaway
@AMC-throwaway 5 жыл бұрын
Everything you stated above i have tried already, even tried copying everything in the repo but no matter what it is returning invalid params
@Jahidhasan-wk8rr
@Jahidhasan-wk8rr 4 жыл бұрын
first create an account on stripe and from your dashboard collect your test api keys and put it on your development.py page also grab the STRIPE_PUBLIC_KEYS and put this on your payment.html page on // Create a Stripe client. var stripe = Stripe('pk_test_K2NvP4wDzdg9bLD80i4b3ksl00t619HgIa'); //STRIPE_PUBLIC_KEYS this line Mine is working in that way Thank you
@saketmarwad4682
@saketmarwad4682 4 жыл бұрын
@@Jahidhasan-wk8rr After clicking submit button it says page not found. Can u help me????????
@Vampirio20
@Vampirio20 5 жыл бұрын
Keep Them Coming !!
@Shivam_Manswalia
@Shivam_Manswalia 4 жыл бұрын
I'm getting Not Authenticated Error after submitting payment
@belitoxavier9058
@belitoxavier9058 3 жыл бұрын
Got this error after clicking the button continue to checkout in the checkout page, does anyone knows about it? InvalidRequestError at /payment/stripe/ Request req_y37T37tzLACtcP: No such customer: 'cus_HZFGCOdmSW1t6D'
@sebastianflorez7618
@sebastianflorez7618 4 жыл бұрын
Hello. Could anyone add paypal? I was able to add the walkway and the payments work well. But the item count in the cart does not violate to 0 and does not record the admin. Help please
@nguyenhung8195
@nguyenhung8195 5 жыл бұрын
Plz make some video about deploy , thank you so much
@noorasfatimaansari1765
@noorasfatimaansari1765 4 жыл бұрын
how to use stripe in India ? anyone knows ?
@kiranraj-dw5gq
@kiranraj-dw5gq 4 жыл бұрын
did u manage to find out?.. I am getting serious error
@noorasfatimaansari1765
@noorasfatimaansari1765 4 жыл бұрын
@@kiranraj-dw5gq Yess... use INR instead of USD for India
@tripathi5174
@tripathi5174 4 жыл бұрын
i know it may sound stupid but please help me on this anyone , where does the money go in this?
@brenmathew1775
@brenmathew1775 4 жыл бұрын
Hi. I'm having a value error at Payments/stripe. It says " The view core.views.PaymentView didn't return an HttpResponse object. It returned None instead." I've added both my public and private key.
@kray85
@kray85 4 жыл бұрын
Did you ever get this resolved? Really appreciate the help.
@chamyong-juncham818
@chamyong-juncham818 4 жыл бұрын
How to solve 'Template error. Page payment/ not found' ?
@javieralejandrogasparavila5580
@javieralejandrogasparavila5580 3 жыл бұрын
I solve this modifying the checkout template. Something about the info you want to send to the payment view. Check this: {% for value, name in form.fields.payment_option.choices %} {{ name }} {% endfor %}
@peterjohn1664
@peterjohn1664 4 жыл бұрын
I am getting'' A serious error occurred we have been notified!'' Plz, help!
@kiranraj-dw5gq
@kiranraj-dw5gq 4 жыл бұрын
When u check the error message does it say UnorderedObjectListWarning?.. I get this in the error message
@therightwingliberal3626
@therightwingliberal3626 4 жыл бұрын
Did u get the solution to this?
@user-zx6ce2sc9w
@user-zx6ce2sc9w 3 жыл бұрын
@@kiranraj-dw5gq I get UnorderedObjectListWarning error. How did you fix it?
@kiranraj-dw5gq
@kiranraj-dw5gq 3 жыл бұрын
@@user-zx6ce2sc9w bro ping me on telegram rxauto
@oldelkhot
@oldelkhot 5 жыл бұрын
@JustDjango Please try to think with me, my payment ends with "Not authenticated"??
@oldelkhot
@oldelkhot 5 жыл бұрын
@YING XUE copy and paste your public and secret keys from stripe website to your settings
@Богдан-у7г4х
@Богдан-у7г4х 4 жыл бұрын
@@oldelkhot May you help me? Where I have to add the secret key?
@oldelkhot
@oldelkhot 4 жыл бұрын
@@Богдан-у7г4х Copy them from your Stripe.come account "dashboard" to your settings.py instead of (YOUR KEYS)
@Богдан-у7г4х
@Богдан-у7г4х 4 жыл бұрын
@@oldelkhot thanks :)
@Jahidhasan-wk8rr
@Jahidhasan-wk8rr 4 жыл бұрын
@@oldelkhot first create an account on stripe and from your dashboard collect your test api keys and put it on your development.py page also grab the STRIPE_PUBLIC_KEYS and put this on your payment.html page on // Create a Stripe client. var stripe = Stripe('pk_test_K2NvP4wDzdg9bLD80i4b3ksl00t619HgIa'); //STRIPE_PUBLIC_KEYS this line Mine is working in that way
@saketmarwad4682
@saketmarwad4682 4 жыл бұрын
After clicking submit button it says page not found. Can someone help????????
@cirodalessandro4572
@cirodalessandro4572 4 жыл бұрын
I have the same error: Template error. Page payment/ not found
@chamyong-juncham818
@chamyong-juncham818 4 жыл бұрын
Have you guys solved this? I am also facing same issue.
@miosz952
@miosz952 4 жыл бұрын
I was facing the same problem and I accidently get on solution that worked in my case, make sure that in urls.py after there is an '/', so the path would look like: path('payment//', views.PaymentView.as_view(), name='payment'),
@MrHenryl
@MrHenryl 5 жыл бұрын
You got a new Die hard subscriber here man... When are your upload days?
@mozenrathzerksis174
@mozenrathzerksis174 5 жыл бұрын
i got error while processing payment Invalid Request Error except stripe.error.InvalidRequestError as e: # Invalid parameters were supplied to Stripe's API messages.error(self.request, "Invalid Request Error") return redirect("/") always please help
@carolcaro194
@carolcaro194 5 жыл бұрын
hello. Did you find the solution to this?
@mozenrathzerksis174
@mozenrathzerksis174 5 жыл бұрын
@@carolcaro194 no i didnot find any solution, i drop this series and practicing on udemy tutorials
@haminlee9168
@haminlee9168 5 жыл бұрын
You have to create a Stripe account and get the SECRET_KEY and set stripe.api_key to that secret key.
@biss1212
@biss1212 5 жыл бұрын
Hamin Lee 2 months ago You have to create a Stripe account and get the SECRET_KEY and set stripe.api_key to that secret key.
@TechWithSabri
@TechWithSabri 4 жыл бұрын
bro just go to stripe website and make an account and confirm your account open your stripe dashboard after it go to -->Get your test API keys it will shows to you in dashboard copy and past your api in the views.py like this import stripe stripe.api_key = ' your api here ' and run python manage.py makemigrations last step python manage.py migrate good luck
@carolcaro194
@carolcaro194 5 жыл бұрын
oops I get invalid parameters. even after trying many ways to solve it I cant actually find where the problem is. Any suggestion?
@lonnybulldozer8426
@lonnybulldozer8426 5 жыл бұрын
You can use the Visa testing token just to make sure it works. In the Payment view, set token to 'tok_visa', and use all 42s for the card number. Check this page if need more of a reference. stripe.com/docs/testing#cards
@headlikeahole6548
@headlikeahole6548 5 жыл бұрын
@@lonnybulldozer8426 Had the same problem and your solution worked. Thanks, man.
@justexisting.03
@justexisting.03 3 жыл бұрын
@@lonnybulldozer8426 thankyou so much.....i was stuck for 3 days but your solutions finally worked....
@oldelkhot
@oldelkhot 5 жыл бұрын
AttributeError: 'Settings' object has no attribute 'STRIPE_SECRET_KEY'???????????????????? I got this error after the first 'makemigratiion' like the above video!
@oldelkhot
@oldelkhot 5 жыл бұрын
I solved the issue although I added stripe to the installed apps in the settings.py by adding stripe settings in the settings.py: # Stripe settings STRIPE_PUBLIC_KEY = 'STRIPE_LIVE_PUBLIC_KEY' STRIPE_SECRET_KEY = 'STRIPE_LIVE_SECRET_KEY'
@oldelkhot
@oldelkhot 5 жыл бұрын
copy and paste the keys from stripe dashboard after signing up!
@TechWithSabri
@TechWithSabri 4 жыл бұрын
bro just go to stripe website and make an account and confirm your account open your stripe dashboard after it go to -->Get your test API keys it will shows to you in dashboard copy and past your api in the views.py like this import stripe stripe.api_key = ' your api here ' and run python manage.py makemigrations last step python manage.py migrate good luck
@loksewabyte
@loksewabyte 5 жыл бұрын
PLZ MAKE VIDEO ON DJANGO GROUP PERMISSIONS
@chamithjanaka6040
@chamithjanaka6040 5 жыл бұрын
already.. Part 6 is here. Thank you @JustDjango.
@nurgazybaetov5193
@nurgazybaetov5193 4 жыл бұрын
Invalid parameters I can't pay
@shreymodi7519
@shreymodi7519 4 жыл бұрын
Same error here. Have you found any solution to it?
@sebastianflorez7618
@sebastianflorez7618 4 жыл бұрын
@@shreymodi7519 acabp de solucionar el problema de una forma sencilla. tenia error en los template tags {{extra_script}} fijate en eso
@aashayamballi
@aashayamballi 5 жыл бұрын
Thank you :)
@tufailmomin2640
@tufailmomin2640 4 жыл бұрын
i am having authenticationerror
@ahmedkhairy482
@ahmedkhairy482 4 жыл бұрын
did you solve it ?
@felicianosamuel2718
@felicianosamuel2718 4 жыл бұрын
Me too
@felicianosamuel2718
@felicianosamuel2718 4 жыл бұрын
How can I solve it? Help please
@jeffersonc.m107
@jeffersonc.m107 5 жыл бұрын
20:00
@xuanfan539
@xuanfan539 4 жыл бұрын
Jj
Build an Ecommerce Website with Django // Part 7 - Discount codes
31:34
Django and Stripe Payments Tutorial
1:10:27
Matt Freire
Рет қаралды 100 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
django-cotton - Modern Components in Django!
20:41
BugBytes
Рет қаралды 11 М.
Putin urgently interrupted a meeting / Change of power in Ukraine
14:46
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 932 М.
Django Paypal | Client Side Integration
33:16
Dennis Ivy
Рет қаралды 53 М.
Django Stripe Payment Gateway Integration Tutorial
17:59
StudyGyaan
Рет қаралды 22 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 425 М.
This video was made with code. But how?
8:42
Fireship
Рет қаралды 756 М.