How to add Stripe payments to ANY Next.js 14 App! (Easy Tutorial for Beginners)

  Рет қаралды 16,395

Sonny Sangha

Sonny Sangha

Күн бұрын

Get started with lcl.host today: 👉 lcl.host
GitHub Source Code: 👉 github.com/sonnysangha/stripe...
🚨 Join the world’s BEST developer community “Zero to Full Stack Hero” NOW: www.papareact.com/course
🔴 LOOKING FOR THE CODE FROM MY OTHER BUILDS? 🛠️
links.papareact.com/github
Join me as I show you how to build and test popular payment methods like Apple & Google Pay on localhost with Next.js 14. You'll learn the following in this video:
👉 How to integrate Stripe's embeddable UI Component: Stripe Payment Element to Accept Payment Methods
👉 How to Test Payment Methods like Apple Pay & Google Pay on localhost using lcl.host
👉 Benefits of using lcl.host compared to Next.js Experimental Flag
👉 Benefits of using lcl.host compared to ngrok
👉 How to Create an API Route Handler in Next.js 14 to Accept Payments
👉 How to build a fully responsive site with Tailwind CSS
👉 How to use TypeScript to reduce the overall number of Bugs and Errors
📩 WANT TO LISTEN TO THE EXCLUSIVE PAPAFAM PLAYLIST?
Sign up for the PAPAFAM Newsletter here 👉 links.papareact.com/newsletter
👇🏻FOLLOW ME HERE:
Instagram: links.papareact.com/instagram
Facebook: links.papareact.com/facebook
LinkedIn: links.papareact.com/linkedin
Twitter: links.papareact.com/twitter
Discord: links.papareact.com/discord
💰 WANT TO SUPPORT THE CHANNEL?
Donate here: links.papareact.com/donate
Grab some PAPAFAM Merch: links.papareact.com/merch
🕐 TIMESTAMPS:
00:00 Introduction
00:23 Build Demo
01:35 Build Breakdown in 5 Steps
02:08 Step 1 | Creating the Next.js 14 App
03:19 Step 2 | Implementing Stripe Payment Element
07:46 Creating the Checkout Page
08:40 Step 3 | Creating a Next.js 14 API Route Handler to Accept Payments
10:56 Generating a Client Secret based on the Payment Method Selected
17:25 Step 4 | Redirecting User to a Payment Success Page
18:08 Problem with Testing Payment Methods on localhost
18:46 Step 5 | Implementing lcl.host to Test Payment Methods in localhost
21:31 Testing Payment Methods on localhost!
22:43 Why Use HTTPS in a Local Environment
24:05 lcl.host vs Next.js Experimental Flag
24:37 lcl.host vs ngrok
25:07 Benefits of lcl.host
25:55 Outro
Let’s get it PAPAFAM 🔥.
#nextjs14 #localhost #anchor #applepay #googlepay #lclhost #tailwindcss #typescript #testing #reactjs #javascript

Пікірлер: 57
@user-mg4kg4vh5e
@user-mg4kg4vh5e Ай бұрын
Your explanations are super clear and concise. Thanks Sonny
@mileslegend
@mileslegend Ай бұрын
my guy comes out with another banger ,, thanks man for not allowing us get dormant.....
@JeremyMoritz1
@JeremyMoritz1 10 күн бұрын
Marvelous tutorial! Followed along and my app worked perfectly on the first try. Thank you for doing this and with such attention to detail! Subscribed.
@user-xh5ry1yb8y
@user-xh5ry1yb8y Ай бұрын
Thanks a llot. love from Bangladesh. I have been waiting for such a video.
@alexsantosdev
@alexsantosdev 2 күн бұрын
Thanks bro, excellent content!
@sadique_x_
@sadique_x_ Ай бұрын
thanks sonny!, thank you so much i'm a big fan
@developmentwithtariq
@developmentwithtariq 15 сағат бұрын
Thank you for your great contribution in my life as a developer
@adomicarts
@adomicarts 5 күн бұрын
Thanks sonnyyyy!!!!
@shreyanshsinghal5457
@shreyanshsinghal5457 26 күн бұрын
Thanks for awesome tutorial
@bespokeprogramming
@bespokeprogramming 25 күн бұрын
Sonny! You are a Legend!
@SonnySangha
@SonnySangha 25 күн бұрын
Appreciate you!!
@tmuse9510
@tmuse9510 15 күн бұрын
useful video I appreciate it dude
@SonnySangha
@SonnySangha 15 күн бұрын
You’re welcome dude!!
@bodywithoutasoul
@bodywithoutasoul Ай бұрын
Thank you for this Sonny, very useful! May I ask why you decided to deviate from the stripe docs and fetch the client secret in the checkout component as opposed to the page, as they show it?
@hamza_Techy
@hamza_Techy Ай бұрын
Great!
@DigitalAlchemyst
@DigitalAlchemyst 13 күн бұрын
A follow up on how to enter stripe data into a data base, pay out tenant users of the app isolate money to user accounts and things of that nature would be great. basically covering deeper in how to use this beyond just grabbing money for sale of something and getting it to you from your strip account.
@olawunitemitope2738
@olawunitemitope2738 Ай бұрын
Please do full tutorial on testing... Like jest testing
@user-wn6qu3xb2l
@user-wn6qu3xb2l 4 күн бұрын
Thank you a lot for this video! But i'm actually trynna add apple and google pay and cashpp it doesn't work for cash app
@ashishsubedi1400
@ashishsubedi1400 24 күн бұрын
can you do paddle integration with next js?
@EdwardBudaza
@EdwardBudaza 29 күн бұрын
Can you please do PayPal as well, Stripe doesn't work on most countries
@keristang7208
@keristang7208 24 күн бұрын
hi sonny, i have successfully following your code , and it works. but somehow my code create 2 transaction everytime i checkout. one transaction show succeeded and another show incomplete. do i implement correctly or this is normal.
@aimagicx
@aimagicx Ай бұрын
Thanks Sonny, Can you please do a video for Lemon Squeezy payment gateway?
@egretfx
@egretfx Ай бұрын
yes please:)
@vatsalcodes
@vatsalcodes 22 күн бұрын
Can we use paypal along with google pay? if yes then how?
@user-xh5ry1yb8y
@user-xh5ry1yb8y 14 күн бұрын
When I am trying to pay the bill it is showing me "No such payment_intent", how can I solve this problem?
@savindugunasekara-xh3zx
@savindugunasekara-xh3zx 13 күн бұрын
Hey my payment element somtimes shows and sometimes doesnt load at all.. why is that happening
@user-ot7ip1zt9c
@user-ot7ip1zt9c Ай бұрын
This is great. Please make a similar video on LemonSqueezy
@SonnySangha
@SonnySangha 25 күн бұрын
On it
@desheapettiford
@desheapettiford 27 күн бұрын
how to add email address and phone number custom field
@it32_harsh_ninave49
@it32_harsh_ninave49 Ай бұрын
MERN project from scratch!❤️
@egretfx
@egretfx Ай бұрын
what about LemonSqueezy? some countries dont have stripe support.
@KATHLEENWoods-gz8rd
@KATHLEENWoods-gz8rd 27 күн бұрын
There is a bypass
@egretfx
@egretfx 27 күн бұрын
@@KATHLEENWoods-gz8rd care to explain?
@Devaratha6823
@Devaratha6823 Күн бұрын
Hey Sonny, I would like to integrate Stripe for our website showcase. I don't want to add real credit cards to Stripe for testing. How can we set it up for testing purposes?
@SonnySangha
@SonnySangha 22 сағат бұрын
They have test cards! 42424242424242 is usually the one!
@enesertugrulkoyuncu3599
@enesertugrulkoyuncu3599 24 күн бұрын
at 12:35 , i cant see your form in my site :/ is it changed in 1 week??
@enesertugrulkoyuncu3599
@enesertugrulkoyuncu3599 24 күн бұрын
i think changed in 1 week...
@waleedsharif618
@waleedsharif618 Ай бұрын
Is using stripe free ? I want to deploy my MERN app in free version of Vercel and it uses Stripe
@deepakkushwaha1392
@deepakkushwaha1392 Ай бұрын
yes
@veerarajankarunanithi728
@veerarajankarunanithi728 Ай бұрын
Yes integration is free but 2% commission on payments need to pay
@_A1Anime
@_A1Anime Ай бұрын
How did you learn all these technologies?
@nemeziz_prime
@nemeziz_prime Ай бұрын
By doing and not over thinking
@KATHLEENWoods-gz8rd
@KATHLEENWoods-gz8rd 27 күн бұрын
By doing it one code at a time
@danimusbar
@danimusbar Ай бұрын
Please make another tutorial but using Paypal
@AllahomAnsorGaza
@AllahomAnsorGaza 25 күн бұрын
anyone know what is his headphone name please :D
@SonnySangha
@SonnySangha 25 күн бұрын
Audiotechniqa! In my desk setup tour I show all
@graphiclife5416
@graphiclife5416 Ай бұрын
You can easily hack the price on the front end
@SonnySangha
@SonnySangha Ай бұрын
Typically pricing comes from the backend, this is just a simple demo where we use a variable on the front end for the price😄 But yes nice point - fetch the amounts from the backend typically!
@MrPherez
@MrPherez Ай бұрын
Intergrate M-Pesa payment
@parrou3
@parrou3 27 күн бұрын
Hi, is next.js a must learn for 2024-2025 ?
@SonnySangha
@SonnySangha 27 күн бұрын
Yes 100%
@user-zv2qb7bc9m
@user-zv2qb7bc9m Ай бұрын
Mern Project
@KATHLEENWoods-gz8rd
@KATHLEENWoods-gz8rd 27 күн бұрын
2024-2026. How important it is to learn next.js and react
@SonnySangha
@SonnySangha 27 күн бұрын
Extremely important. Trust me - market is huge
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 222 М.
The App YOU or I Could Have Built... ShipFast
6:52
Travis Media
Рет қаралды 125 М.
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 64 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 33 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Avoid Disputes & Frauds in Payment - 2023 | Stripe/PayPal Dispute
5:38
My Unconventional Coding Story | Self-Taught
27:14
Travis Media
Рет қаралды 580 М.
How to deploy to Vercel using the CLI
7:10
Franklin Mayoyo
Рет қаралды 297
English Conversation 39 | Funny English
30:47
English Conversation
Рет қаралды 2,7 МЛН
lofi hip hop radio 📚 - beats to relax/study to
Lofi Girl
Рет қаралды 19 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 926 М.
🔴  Build the Uber clone in React Native (Tutorial for Beginners)
3:43:51
From 0 to Back-End Developer in 12 Months: The Complete Roadmap
8:24
Programming with Mosh
Рет қаралды 152 М.
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47