Fireship · @fireship

Get Paid with Stripe in 100 Seconds

Uploaded May 12, 2020 · Length 2:10

Get Paid with Stripe in 100 Seconds

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.

  1. 0:00

    strike it's a toolkit that can monetize

  2. 0:02

    virtually any online business model it's

  3. 0:04

    api's or like low-level building blocks

  4. 0:06

    that can be used to accept payments

  5. 0:08

    manage customers handle recurring

  6. 0:10

    subscriptions and more lyft uses it to

  7. 0:12

    take payments from riders and payout

  8. 0:14

    drivers digitalocean uses it to sell a

  9. 0:16

    metered software-as-a-service product

  10. 0:18

    and Shopify uses it to implement a

  11. 0:20

    massive online marketplace it's

  12. 0:22

    extremely popular with startups because

  13. 0:23

    of its developer first approach instead

  14. 0:25

    of worrying about things like compliance

  15. 0:26

    security and fraud detection you can

  16. 0:29

    focus on the user experience and

  17. 0:30

    implement your payment system with just

  18. 0:32

    a few API calls so how does a credit

  19. 0:34

    card payment work when a user is ready

  20. 0:36

    to make a payment in your app you'll

  21. 0:38

    first need to create a payment intent on

  22. 0:40

    your server the payment intent is kind

  23. 0:42

    of like a session that manages the

  24. 0:43

    payment process currently it's in a

  25. 0:45

    state of requires payment method step

  26. 0:48

    two is obtaining the credit card details

  27. 0:49

    or payment method from the customer you

  28. 0:52

    can handle this process securely on the

  29. 0:53

    web using stripe j/s it's able to mount

  30. 0:56

    a customizable credit card forum

  31. 0:57

    directly in your application it

  32. 0:59

    automatically validates the users input

  33. 1:01

    so you don't have to worry about

  34. 1:02

    implementing your own form validation

  35. 1:04

    and all the edge cases that go along

  36. 1:05

    with it when the form is submitted

  37. 1:06

    you'll write a function that takes the

  38. 1:08

    payment intent from your server combines

  39. 1:10

    it with the credit card details entered

  40. 1:12

    by the user in the browser then calls

  41. 1:14

    stripe confirm card payment to send this

  42. 1:16

    data off to stripe servers it will

  43. 1:18

    attempt to finalize the payment but many

  44. 1:20

    parts of the world now have regulations

  45. 1:21

    in place that require additional

  46. 1:23

    authorization for the payment the

  47. 1:25

    payment intent now has a status of

  48. 1:26

    requires action a strike will handle

  49. 1:29

    this process for you entirely in the

  50. 1:30

    front end and once complete your payment

  51. 1:32

    intent will move to a status of

  52. 1:33

    succeeded congratulations you've just

  53. 1:36

    been paid but you're not done just yet

  54. 1:37

    you still need to fulfill the product

  55. 1:39

    somehow anytime something important

  56. 1:41

    happens in the stripe API like when a

  57. 1:42

    payment intent succeeds you can listen

  58. 1:44

    to these events by setting up web hooks

  59. 1:46

    when the event occurs stripe will send

  60. 1:48

    this data to your server so you can

  61. 1:49

    handle it accordingly like updating your

  62. 1:51

    apps database or printing out a shipping

  63. 1:53

    label this has been stripe payments in

  64. 1:54

    100 seconds if you're serious about

  65. 1:56

    monetizing your product consider

  66. 1:58

    enrolling in my brand new stripe

  67. 1:59

    JavaScript course thanks for watching