mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Add action after the new order status is authorized
This commit is contained in:
parent
498efd72ad
commit
fc270805e2
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue