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-dw5gq4 жыл бұрын
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
@olaniyioluseun82505 жыл бұрын
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!
@khamdamov5 жыл бұрын
You rock man, thanks for your effort. Keep going. Please make a video on deployment at the and of this series.
@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..
@wahyuhendri92485 жыл бұрын
This is what I really need man, thank you! Great efforts!!
@atitacharya64235 жыл бұрын
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
@kray854 жыл бұрын
Has anyone encountered this error. The view core.views.PaymentView didn't return an HttpResponse object. It returned None instead."
@nobelfood3.6m174 жыл бұрын
i think you @KRay forget... return redirect("/") in try block or excepts blocks
@ИгорьНовиков-в2я5 жыл бұрын
will you add the ability to choose the size and color for the product?
@ahmedkhairy4824 жыл бұрын
how did you add the size and color ?
@EddyCaffrey5 жыл бұрын
This serie is so good. Thank
@oldelkhot5 жыл бұрын
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) ??
@MhadiAhmed5 жыл бұрын
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-throwaway5 жыл бұрын
@@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-throwaway5 жыл бұрын
@@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-throwaway5 жыл бұрын
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-wk8rr4 жыл бұрын
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
@saketmarwad46824 жыл бұрын
@@Jahidhasan-wk8rr After clicking submit button it says page not found. Can u help me????????
@Vampirio205 жыл бұрын
Keep Them Coming !!
@Shivam_Manswalia4 жыл бұрын
I'm getting Not Authenticated Error after submitting payment
@belitoxavier90583 жыл бұрын
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'
@sebastianflorez76184 жыл бұрын
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
@nguyenhung81955 жыл бұрын
Plz make some video about deploy , thank you so much
@noorasfatimaansari17654 жыл бұрын
how to use stripe in India ? anyone knows ?
@kiranraj-dw5gq4 жыл бұрын
did u manage to find out?.. I am getting serious error
@noorasfatimaansari17654 жыл бұрын
@@kiranraj-dw5gq Yess... use INR instead of USD for India
@tripathi51744 жыл бұрын
i know it may sound stupid but please help me on this anyone , where does the money go in this?
@brenmathew17754 жыл бұрын
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.
@kray854 жыл бұрын
Did you ever get this resolved? Really appreciate the help.
@chamyong-juncham8184 жыл бұрын
How to solve 'Template error. Page payment/ not found' ?
@javieralejandrogasparavila55803 жыл бұрын
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 %}
@peterjohn16644 жыл бұрын
I am getting'' A serious error occurred we have been notified!'' Plz, help!
@kiranraj-dw5gq4 жыл бұрын
When u check the error message does it say UnorderedObjectListWarning?.. I get this in the error message
@therightwingliberal36264 жыл бұрын
Did u get the solution to this?
@user-zx6ce2sc9w3 жыл бұрын
@@kiranraj-dw5gq I get UnorderedObjectListWarning error. How did you fix it?
@kiranraj-dw5gq3 жыл бұрын
@@user-zx6ce2sc9w bro ping me on telegram rxauto
@oldelkhot5 жыл бұрын
@JustDjango Please try to think with me, my payment ends with "Not authenticated"??
@oldelkhot5 жыл бұрын
@YING XUE copy and paste your public and secret keys from stripe website to your settings
@Богдан-у7г4х4 жыл бұрын
@@oldelkhot May you help me? Where I have to add the secret key?
@oldelkhot4 жыл бұрын
@@Богдан-у7г4х Copy them from your Stripe.come account "dashboard" to your settings.py instead of (YOUR KEYS)
@Богдан-у7г4х4 жыл бұрын
@@oldelkhot thanks :)
@Jahidhasan-wk8rr4 жыл бұрын
@@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
@saketmarwad46824 жыл бұрын
After clicking submit button it says page not found. Can someone help????????
@cirodalessandro45724 жыл бұрын
I have the same error: Template error. Page payment/ not found
@chamyong-juncham8184 жыл бұрын
Have you guys solved this? I am also facing same issue.
@miosz9524 жыл бұрын
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'),
@MrHenryl5 жыл бұрын
You got a new Die hard subscriber here man... When are your upload days?
@mozenrathzerksis1745 жыл бұрын
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
@carolcaro1945 жыл бұрын
hello. Did you find the solution to this?
@mozenrathzerksis1745 жыл бұрын
@@carolcaro194 no i didnot find any solution, i drop this series and practicing on udemy tutorials
@haminlee91685 жыл бұрын
You have to create a Stripe account and get the SECRET_KEY and set stripe.api_key to that secret key.
@biss12125 жыл бұрын
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.
@TechWithSabri4 жыл бұрын
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
@carolcaro1945 жыл бұрын
oops I get invalid parameters. even after trying many ways to solve it I cant actually find where the problem is. Any suggestion?
@lonnybulldozer84265 жыл бұрын
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
@headlikeahole65485 жыл бұрын
@@lonnybulldozer8426 Had the same problem and your solution worked. Thanks, man.
@justexisting.033 жыл бұрын
@@lonnybulldozer8426 thankyou so much.....i was stuck for 3 days but your solutions finally worked....
@oldelkhot5 жыл бұрын
AttributeError: 'Settings' object has no attribute 'STRIPE_SECRET_KEY'???????????????????? I got this error after the first 'makemigratiion' like the above video!
@oldelkhot5 жыл бұрын
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'
@oldelkhot5 жыл бұрын
copy and paste the keys from stripe dashboard after signing up!
@TechWithSabri4 жыл бұрын
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
@loksewabyte5 жыл бұрын
PLZ MAKE VIDEO ON DJANGO GROUP PERMISSIONS
@chamithjanaka60405 жыл бұрын
already.. Part 6 is here. Thank you @JustDjango.
@nurgazybaetov51934 жыл бұрын
Invalid parameters I can't pay
@shreymodi75194 жыл бұрын
Same error here. Have you found any solution to it?
@sebastianflorez76184 жыл бұрын
@@shreymodi7519 acabp de solucionar el problema de una forma sencilla. tenia error en los template tags {{extra_script}} fijate en eso