diff --git a/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php b/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php index e1f4f9654..e6186badf 100644 --- a/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php +++ b/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php @@ -112,6 +112,10 @@ trait PaymentsStatusHandlingTrait { 'on-hold', __( 'Awaiting payment.', 'woocommerce-paypal-payments' ) ); + /** + * Fired when PayPal order is authorized. + */ + do_action( 'woocommerce_paypal_payments_order_authorized', $wc_order, $authorization ); break; case AuthorizationStatus::DENIED: $wc_order->update_status(