Webhook helpers in stripe-php

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • Learn how to use helpers in the client library to deserialize webhook event payloads into instances of objects rather than working with raw json directly. You'll also learn how signature verification works and how you can use the methods in the client library to handle signature verification for you.
    Presenter
    Thorsten Schaeff - Developer Advocate at Stripe - / thorwebdev
    Resources
    Client library: github.com/stripe/stripe-php
    Documentation for basic: stripe.com/docs/webhooks/build
    Documentation for signature verification: stripe.com/docs/webhooks/sign...
    Code: github.com/stripe-samples/dev...
    Table of contents
    00:00 Webhooks overview
    00:49 Events
    01:41 Webhooks vs. polling
    01:57 Versioning
    02:24 Deserialization
    02:52 Development process
    03:18 Implement a basic webhook handler
    08:49 Security
    09:18 Signature verification
    10:46 Create webhook endpoints
    12:42 Stripe CLI `listen`
    13:12 Implement a webhook handler that verifies signatures
    18:37 Conclusion
    Support
    If you have a question, please feel free to reach out to our support team on Discord at stripe.com/go/developer-chat.
    Updates
    Sign up to stay updated with developer news: go.stripe.global/dev-digest
    Feedback
    If you have any feedback about this or other episodes, let us know: forms.gle/VjNqzRhotM2snYo88.
    #Stripe #Payments
  • НаукаНаука

Комментарии • 13

  • @TLFNode
    @TLFNode 2 года назад

    You saved my life, the stripe documentation was a little confusing for a beginner like me but in this video everything was very clear. Thank you!

    • @StripeDev
      @StripeDev  2 года назад +1

      Glad we could help you!

  • @artneo7
    @artneo7 Год назад

    You helped me so much! Your video should be highlighted in the Stripe's documentation! 🙏🎉

    • @StripeDev
      @StripeDev  Год назад +1

      Thanks for the kind words. We're glad to hear it!

  • @jamesr2408
    @jamesr2408 11 месяцев назад

    Thanks. That was helpful. Every little bit helps. 🙂

  • @BABALOOEY46
    @BABALOOEY46 2 года назад

    Thanks Thorsten, I have been avoiding using the CLI as I'd rather use a text editor, but I am warming to it... I've a basic diploma in web development so I find it challenging to get my head around the complete workings of stripe, I have just learned how to use the dotenv file to keep my keys safe and now really have a good grasp of how to implement a webhook to get confirmation of a successful transaction thanks to this video... I'm pretty sure I'll be biting the bullet and learning the CLI soon.. we'll see.... need to get the basic functions going on my website asap... Thanks for the awesome instructions.

    • @HashimAziz1
      @HashimAziz1 2 года назад +1

      The CLI is not hard at all and can make debugging Stripe API problems a lot easier.

    • @BABALOOEY46
      @BABALOOEY46 2 года назад +1

      @@HashimAziz1 yep into it now… have been using it to test the web hook 👍🏻 My. Whsec has expired though I’ll have to dive back into the tutorials.

  • @dalionli
    @dalionli Год назад

    Great video, clear and I understood it. Do you think you could do an example for Coldfudion or Lucee please.

  • @alexlonewolf4285
    @alexlonewolf4285 Год назад

    great video!

  • @philfai-pp5wf
    @philfai-pp5wf 2 года назад

    When you execute the command "stripe listen --forward", don't you need to include the name of 'index.php'? after 'localhost:4242'?

    • @StripeDev
      @StripeDev  2 года назад

      Hi Phil-nope, you don't need to include index.php because the web server will default to the index.php file.

  • @mitchellbenjamin3071
    @mitchellbenjamin3071 11 месяцев назад

    this guy didn't want to be there