Advertisement
Guest User

Untitled

a guest
May 14th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.46 KB | None | 0 0
  1. Webhook.constructEvent(request.body,
  2.                                request.headers
  3.                                  .get("Stripe-Signature")
  4.                                  .getOrElse(throw notAuthenticatedException()),
  5.                                endpointSecret)) match {
  6.         case Success(checked) => {
  7.           println(checked)
  8.           checked
  9.         }
  10.         case Failure(e) =>
  11.           println(s"--------------$e")
  12.           throw e;
  13.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement