Add action after the new order status is authorized

This commit is contained in:
Narek Zakarian 2024-01-23 19:02:28 +04:00
parent 498efd72ad
commit fc270805e2
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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(