Fireship · @fireship

Stripe Payments Basics - Including New 3D Secure Requirements for EU Customers

Uploaded October 23, 2019 · Length 11:43

Stripe Payments Basics -  Including New 3D Secure Requirements for EU Customers

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.

  1. 0:00

    20-19 has been an important year for the

  2. 0:02

    way developers handle online payments in

  3. 0:04

    September banks in the EU started

  4. 0:06

    rolling out strong customer

  5. 0:07

    authentication this means that if you

  6. 0:09

    have customers in the EU they may need

  7. 0:11

    to log into their bank's website to

  8. 0:13

    authorize a payment before it can be

  9. 0:14

    processed in today's video we'll look at

  10. 0:17

    two different strategies you can use

  11. 0:18

    with stripe to accept payments in your

  12. 0:20

    app both of which are fully compatible

  13. 0:21

    with this 3d secure process if you're

  14. 0:24

    new here like and subscribe and check

  15. 0:25

    out the stripe payments master course

  16. 0:27

    for everything you need to know about

  17. 0:28

    building a payment system in today's

  18. 0:30

    video we'll be looking at how to handle

  19. 0:32

    one-time payments the easy way to get

  20. 0:34

    paid is with stripe checkout it can be

  21. 0:36

    implemented with Xero back-end code but

  22. 0:38

    has limited options for customization

  23. 0:40

    when we're done with that we'll look at

  24. 0:42

    a more complex approach that combines

  25. 0:43

    stripe elements with the payment intents

  26. 0:45

    API and that will give us full control

  27. 0:47

    over the payment flow and user

  28. 0:49

    experience to get started you'll need to

  29. 0:51

    have a stripe account and then you'll

  30. 0:52

    also want some kind of nodejs back-end

  31. 0:54

    will be using firebase cloud functions

  32. 0:56

    for this video but feel free to use any

  33. 0:58

    node back-end that you want in the

  34. 1:00

    front-end application we just have a

  35. 1:01

    single product and that is the only

  36. 1:03

    product that the user can buy when they

  37. 1:05

    click the purchase button it will bring

  38. 1:07

    up the stripe checkout UI this is a

  39. 1:09

    checkout flow that is completely handled

  40. 1:11

    by stripe that means you don't have to

  41. 1:12

    handle any of the UI coding yourself

  42. 1:14

    stripe will validate the credit card and

  43. 1:16

    process the payment all inside of this

  44. 1:18

    checkout page and it also handles the 3d

  45. 1:21

    secure authentication process for

  46. 1:22

    customers in Europe if the user does not

  47. 1:24

    complete this process by signing into

  48. 1:26

    their own bank and authorizing the

  49. 1:27

    charge the payment will not go through

  50. 1:29

    when the payment is complete you can

  51. 1:31

    specify a redirect URL and stripe will

  52. 1:34

    redirect the user to a success page

  53. 1:35

    along with the ID of the session so you

  54. 1:37

    can retrieve it if necessary and if the

  55. 1:40

    payment is unsuccessful or if the user

  56. 1:41

    cancels you can go to a separate URL

  57. 1:44

    once you've received a payment from a

  58. 1:46

    user you then need to think about how

  59. 1:47

    you'll actually fulfill their purchase

  60. 1:49

    and this is entirely dependent on how

  61. 1:51

    your business operates one option is to

  62. 1:53

    just go into the stripe dashboard and do

  63. 1:55

    all that stuff manually but we're

  64. 1:57

    developers so we want to do everything

  65. 1:58

    programmatically and the way you do that