Add support for refunds in api response structure

This commit is contained in:
Pedro Silva 2023-08-04 11:46:34 +01:00
parent 65f89fd63e
commit ef5fc4b3d4
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
14 changed files with 696 additions and 194 deletions

View file

@ -227,10 +227,12 @@ class IncomingWebhookEndpoint {
foreach ( $this->handlers as $handler ) {
if ( $handler->responsible_for_request( $request ) ) {
$event_type = ( $handler->event_types() ? current( $handler->event_types() ) : '' ) ?: '';
$this->logger->debug(
sprintf(
'Webhook is going to be handled by %s on %s',
( $handler->event_types() ) ? current( $handler->event_types() ) : '',
$event_type,
get_class( $handler )
)
);
@ -238,7 +240,7 @@ class IncomingWebhookEndpoint {
$this->logger->info(
sprintf(
'Webhook has been handled by %s on %s',
( $handler->event_types() ) ? current( $handler->event_types() ) : '',
$event_type,
get_class( $handler )
)
);