Business::GoCardless::Webhook::Event
A class for gocardless webhook events, extends Business::GoCardless::Resource. For more details see the gocardless API documentation specific to webhooks: https://developer.gocardless.com/api-reference/#appendix-webhooks
id created_at action resource_type links details
Returns an array of resource objects (Payment, Subscription, etc) that are present in the event allowing you to do things with them or update your own data:
if ( $Event->is_payment ) { foreach my $Payment ( $Event->resources ) { if ( $Event->action eq 'paid_out' ) { ... } } }
Shortcut methods to get the type of data in the event, and thus the type of objects that will be returned by the call to ->resources
To install Business::GoCardless, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::GoCardless
CPAN shell
perl -MCPAN -e shell install Business::GoCardless
For more information on module installation, please visit the detailed CPAN module installation guide.