Fireship · @fireship
Stripe Payments Basics - Including New 3D Secure Requirements for EU Customers
Uploaded October 23, 2019 · Length 11:43
Summary
Learn how to use Stripe Payments for EU customers with 3D secure requirements, including one-time payments and checkout flows.
- stripe payments
- 3d secure
- eu customers
- one-time payments
- checkout flows
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
20-19 has been an important year for the
- 0:02
way developers handle online payments in
- 0:04
September banks in the EU started
- 0:06
rolling out strong customer
- 0:07
authentication this means that if you
- 0:09
have customers in the EU they may need
- 0:11
to log into their bank's website to
- 0:13
authorize a payment before it can be
- 0:14
processed in today's video we'll look at
- 0:17
two different strategies you can use
- 0:18
with stripe to accept payments in your
- 0:20
app both of which are fully compatible
- 0:21
with this 3d secure process if you're
- 0:24
new here like and subscribe and check
- 0:25
out the stripe payments master course
- 0:27
for everything you need to know about
- 0:28
building a payment system in today's
- 0:30
video we'll be looking at how to handle
- 0:32
one-time payments the easy way to get
- 0:34
paid is with stripe checkout it can be
- 0:36
implemented with Xero back-end code but
- 0:38
has limited options for customization
- 0:40
when we're done with that we'll look at
- 0:42
a more complex approach that combines
- 0:43
stripe elements with the payment intents
- 0:45
API and that will give us full control
- 0:47
over the payment flow and user
- 0:49
experience to get started you'll need to
- 0:51
have a stripe account and then you'll
- 0:52
also want some kind of nodejs back-end
- 0:54
will be using firebase cloud functions
- 0:56
for this video but feel free to use any
- 0:58
node back-end that you want in the
- 1:00
front-end application we just have a
- 1:01
single product and that is the only
- 1:03
product that the user can buy when they
- 1:05
click the purchase button it will bring
- 1:07
up the stripe checkout UI this is a
- 1:09
checkout flow that is completely handled
- 1:11
by stripe that means you don't have to
- 1:12
handle any of the UI coding yourself
- 1:14
stripe will validate the credit card and
- 1:16
process the payment all inside of this
- 1:18
checkout page and it also handles the 3d
- 1:21
secure authentication process for
- 1:22
customers in Europe if the user does not
- 1:24
complete this process by signing into
- 1:26
their own bank and authorizing the
- 1:27
charge the payment will not go through
- 1:29
when the payment is complete you can
- 1:31
specify a redirect URL and stripe will
- 1:34
redirect the user to a success page
- 1:35
along with the ID of the session so you
- 1:37
can retrieve it if necessary and if the
- 1:40
payment is unsuccessful or if the user
- 1:41
cancels you can go to a separate URL
- 1:44
once you've received a payment from a
- 1:46
user you then need to think about how
- 1:47
you'll actually fulfill their purchase
- 1:49
and this is entirely dependent on how
- 1:51
your business operates one option is to
- 1:53
just go into the stripe dashboard and do
- 1:55
all that stuff manually but we're
- 1:57
developers so we want to do everything
- 1:58
programmatically and the way you do that


