WC_Gateway_Paypal_Refund

Here for backwards compatibility.

Defined (1)

The class is defined in the following location(s).

/includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php  
  1. class WC_Gateway_Paypal_Refund extends WC_Gateway_Paypal_API_Handler { 
  2. public static function get_request( $order, $amount = null, $reason = '' ) { 
  3. return self::get_refund_request( $order, $amount, $reason ); 
  4. public static function refund_order( $order, $amount = null, $reason = '', $sandbox = false ) { 
  5. if ( $sandbox ) { 
  6. self::$sandbox = $sandbox; 
  7. $result = self::refund_transaction( $order, $amount, $reason ); 
  8. if ( is_wp_error( $result ) ) { 
  9. return $result; 
  10. } else { 
  11. return (array) $result;