WooCommerce Code Reference

WC_Gateway_Paypal_Webhook_Handler
in package

Handles webhook events.

Table of Contents

process_webhook()  : mixed
Process the webhook event.
authorize_or_capture_payment()  : void
Capture the payment.
get_action_url()  : string|null
Get the action URL from the links.
process_checkout_order_approved()  : mixed
Process the CHECKOUT.ORDER.APPROVED webhook event.
process_payment_authorization_created()  : mixed
Process the PAYMENT.AUTHORIZATION.CREATED webhook event.
process_payment_capture_completed()  : mixed
Process the PAYMENT.CAPTURE.COMPLETED webhook event.
process_payment_capture_pending()  : mixed
Process the PAYMENT.CAPTURE.PENDING webhook event.

Methods

get_action_url()

Get the action URL from the links.

private get_action_url(array<string|int, mixed> $links, string $action) : string|null
Parameters
$links : array<string|int, mixed>

The links from the webhook event.

$action : string

The action to perform (capture or authorize).

Return values
string|null