public function webhook(array $data = []): ?array
    {
        $validated = $this->validateAgainstSignature($data, $this->client->getSignatureKey(), [
            'amount', 'collection_id', 'due_at', 'email', 'id', 'mobile', 'name',
            'paid_amount', 'paid_at', 'paid', 'state', 'url',
        ]);

        if ((bool) $validated) {
            return $this->filterResponse($data);
        }

        return null;
    }
public function webhook(array $data = []): ?array
    {
        $validated = $this->validateAgainstSignature($data, $this->client->getSignatureKey(), [
            'amount', 'collection_id', 'due_at', 'email', 'id', 'mobile', 'name',
            'paid_amount', 'paid_at', 'paid', 'state', 'url',
        ]);

        if ((bool) $validated) {
            return $this->filterResponse($data);
        }

        return null;
    }
public function webhook ( array $ data = [ ] ) : ? array { $ validated = $ this -> validateAgainstSignature ( $ data , $ this -> client -> getSignatureKey ( ) , [ 'amount' , 'collection_id' , 'due_at' , 'email' , 'id' , 'mobile' , 'name' , 'paid_amount' , 'paid_at' , 'paid' , 'state' , 'url' , ] ) ; if ( ( bool ) $ validated ) { return $ this -> filterResponse ( $ data ) ; } return null ; }
Parse webhook data for a bill.

@param  array  $data

@return array|null
Parse webhook data for a bill .