Fireship · @fireship
Get Paid with Stripe in 100 Seconds
Uploaded May 12, 2020 · Length 2:10
Summary
how to integrate stripe payments into your online business model in 100 seconds
- stripe payments
- online payment integration
- stripe api
- payment gateway
- e-commerce
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
strike it's a toolkit that can monetize
- 0:02
virtually any online business model it's
- 0:04
api's or like low-level building blocks
- 0:06
that can be used to accept payments
- 0:08
manage customers handle recurring
- 0:10
subscriptions and more lyft uses it to
- 0:12
take payments from riders and payout
- 0:14
drivers digitalocean uses it to sell a
- 0:16
metered software-as-a-service product
- 0:18
and Shopify uses it to implement a
- 0:20
massive online marketplace it's
- 0:22
extremely popular with startups because
- 0:23
of its developer first approach instead
- 0:25
of worrying about things like compliance
- 0:26
security and fraud detection you can
- 0:29
focus on the user experience and
- 0:30
implement your payment system with just
- 0:32
a few API calls so how does a credit
- 0:34
card payment work when a user is ready
- 0:36
to make a payment in your app you'll
- 0:38
first need to create a payment intent on
- 0:40
your server the payment intent is kind
- 0:42
of like a session that manages the
- 0:43
payment process currently it's in a
- 0:45
state of requires payment method step
- 0:48
two is obtaining the credit card details
- 0:49
or payment method from the customer you
- 0:52
can handle this process securely on the
- 0:53
web using stripe j/s it's able to mount
- 0:56
a customizable credit card forum
- 0:57
directly in your application it
- 0:59
automatically validates the users input
- 1:01
so you don't have to worry about
- 1:02
implementing your own form validation
- 1:04
and all the edge cases that go along
- 1:05
with it when the form is submitted
- 1:06
you'll write a function that takes the
- 1:08
payment intent from your server combines
- 1:10
it with the credit card details entered
- 1:12
by the user in the browser then calls
- 1:14
stripe confirm card payment to send this
- 1:16
data off to stripe servers it will
- 1:18
attempt to finalize the payment but many
- 1:20
parts of the world now have regulations
- 1:21
in place that require additional
- 1:23
authorization for the payment the
- 1:25
payment intent now has a status of
- 1:26
requires action a strike will handle
- 1:29
this process for you entirely in the
- 1:30
front end and once complete your payment
- 1:32
intent will move to a status of
- 1:33
succeeded congratulations you've just
- 1:36
been paid but you're not done just yet
- 1:37
you still need to fulfill the product
- 1:39
somehow anytime something important
- 1:41
happens in the stripe API like when a
- 1:42
payment intent succeeds you can listen
- 1:44
to these events by setting up web hooks
- 1:46
when the event occurs stripe will send
- 1:48
this data to your server so you can
- 1:49
handle it accordingly like updating your
- 1:51
apps database or printing out a shipping
- 1:53
label this has been stripe payments in
- 1:54
100 seconds if you're serious about
- 1:56
monetizing your product consider
- 1:58
enrolling in my brand new stripe
- 1:59
JavaScript course thanks for watching


