mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
listen to CHECKOUT.ORDER.APPROVED webhook
This commit is contained in:
parent
68fe89af4b
commit
b5b29b8e58
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ class CheckoutOrderCompleted implements RequestHandler
|
||||||
|
|
||||||
public function eventTypes(): array
|
public function eventTypes(): array
|
||||||
{
|
{
|
||||||
return ['CHECKOUT.ORDER.COMPLETED'];
|
return [
|
||||||
|
'CHECKOUT.ORDER.COMPLETED',
|
||||||
|
'CHECKOUT.ORDER.APPROVED',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function responsibleForRequest(\WP_REST_Request $request): bool
|
public function responsibleForRequest(\WP_REST_Request $request): bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue