Fix linter errors

This commit is contained in:
Alex P 2022-02-23 17:35:17 +02:00
parent 577e5c54d2
commit a38ebfae04
2 changed files with 9 additions and 0 deletions

View file

@ -63,6 +63,9 @@ trait PaymentsStatusHandlingTrait {
switch ( $status->name() ) {
case CaptureStatus::COMPLETED:
$wc_order->payment_complete();
/**
* Fired when PayPal order is captured.
*/
do_action( 'woocommerce_paypal_payments_order_captured', $wc_order, $capture );
break;
// It is checked in the capture endpoint already, but there are other ways to capture,