mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add support for refunds in api response structure
This commit is contained in:
parent
65f89fd63e
commit
ef5fc4b3d4
14 changed files with 696 additions and 194 deletions
|
@ -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 )
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue