Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook events for Stripe Identity #135

Closed
kschins opened this issue Aug 18, 2021 · 6 comments
Closed

Webhook events for Stripe Identity #135

kschins opened this issue Aug 18, 2021 · 6 comments

Comments

@kschins
Copy link

kschins commented Aug 18, 2021

Are there plans to add the new webhook events for Stripe Identity?

  • identity.verification_session.canceled
  • identity.verification_session.created
  • identity.verification_session.processing
  • identity.verification_session.redacted
  • identity.verification_session.requires_input
  • identity.verification_session.verified

If there is no timeline, I can attempt to implement this and create a PR.

@Andrewangeta
Copy link
Member

@kschins they're already implemented. Was part of the 13.0.0 release

case identityVerificationSessionCanceled = "identity.verification_session.canceled"

@kschins
Copy link
Author

kschins commented Aug 18, 2021

@Andrewangeta doh, sorry about that -- wasn't looking at the latest version. Thank you!

@kschins kschins closed this as completed Aug 18, 2021
@Andrewangeta
Copy link
Member

Actually the event keys are there but I don’t think they’re implemented with decoding the object. Let me verify

@Andrewangeta
Copy link
Member

Ok it is implemented. StripeVerificationSession is there!

@Andrewangeta
Copy link
Member

So you’d do something like

switch (event.type, event.data?.object) {
    case (.identityVerificationSessionCreated, .verificationSession(let session)):

@kschins
Copy link
Author

kschins commented Aug 18, 2021

Yup, got it. I have other events implemented so I'm familiar with it -- thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants