The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

TODO

Need to document the keys and values that are returned
Need to document the required and optional input parameters
Need to document the possible errors/exceptions