WebService::Braintree::WebhookNotification
This class parses and verifies webhook notifications.
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.
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.
This takes a challenge and returns a proper response.
In addition to the methods provided by the keys returned from Braintree, this class provides the following methods:
This returns the subscription associated with this notification (if any). This will be an object of type "" in WebService::Braintree::Subscription.
This returns the merchant account associated with this notification (if any). This will be an object of type "" in WebService::Braintree::MerchantAccount.
This returns the disbursement associated with this notification (if any). This will be an object of type "" in WebService::Braintree::Disbursement.
This returns the stransaction associated with this notification (if any). This will be an object of type "" in WebService::Braintree::Transaction.
This returns the partner merchant associated with this notification (if any). This will be an object of type "" in WebService::Braintree::PartnerMerchant.
This returns the dispute associated with this notification (if any). This will be an object of type "" in WebService::Braintree::Dispute.
This returns the errors associated with this notification (if any). This will be an object of type "" in WebService::Braintree::ValidationErrorCollection.
This returns the message associated with this notification (if any). This will be a string.
To install WebService::Braintree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Braintree
CPAN shell
perl -MCPAN -e shell install WebService::Braintree
For more information on module installation, please visit the detailed CPAN module installation guide.