woocommerce_paypal_refund_request

woocommerce_paypal_refund_request

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_paypal_refund_request') is found 1 times:

  • /includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php line 94
    			$request['AMT']          = number_format( $amount, 2, '.', '' );
    			$request['CURRENCYCODE'] = $order->get_currency();
    			$request['REFUNDTYPE']   = 'Partial';
    		}
    		return apply_filters( 'woocommerce_paypal_refund_request', $request, $order, $amount, $reason );
    	}
    
    	/**
    	 * Capture an authorization.
    	 *
    	 * @param  WC_Order $order Order object.