Search for Events
You can find a single Event
by using its UID.
$bankAccount = Pencepay_BankAccount::find('bank_account_uid', 'customer_uid');
Event
object is returned on success, and within it the payload object for which the event was originally triggered.
Find all triggered Events for any object
$search = Pencepay_Request_EventSearch::build()
->objectUid()->is('object_uid')
->eventType()->contains('transaction.')
->created()->between(1417993999, 1418993999);
$collection = Pencepay_Event::search('event_uid', $search);