mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +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',
|
'on-hold',
|
||||||
__( 'Awaiting payment.', 'woocommerce-paypal-payments' )
|
__( 'Awaiting payment.', 'woocommerce-paypal-payments' )
|
||||||
);
|
);
|
||||||
|
/**
|
||||||
|
* Fired when PayPal order is authorized.
|
||||||
|
*/
|
||||||
|
do_action( 'woocommerce_paypal_payments_order_authorized', $wc_order, $authorization );
|
||||||
break;
|
break;
|
||||||
case AuthorizationStatus::DENIED:
|
case AuthorizationStatus::DENIED:
|
||||||
$wc_order->update_status(
|
$wc_order->update_status(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue