NAME
WebService::Braintree::WebhookNotification
PURPOSE
This class parses and verifies webhook notifications.
NOTES
Unlike all other classes, this class does NOT interact with a REST API. Instead, this takes data you provide it and either parses it into a usable object or provides a verification of it.
CLASS METHODS
parse()
This takes a signature and a payload and returns a parsing of the notification within that payload. The payload is validated against the signature before parsing.
The return is an object of this class.
verify()
This takes a challenge and returns a proper response.