public/wordpress/wp-content/plugins/wp-courseware/includes/models/order.php
/**
	 * Is Order Refundable?
	 *
	 * @since 4.3.0
	 *
	 * @return bool True if order is refundable, false otherwise.
	 */


@return bool True if order is refundable, false otherwise.
@return bool True if order is refundable false otherwise .
public function is_refundable() {
		$gateway = wpcw()->gateways->get_gateway( $this->get_payment_method() );
		if ( is_null( $gateway ) || ! $gateway instanceof Gateway ) {
			return false;
		}
		if ( 'multiple' === $this->get_transaction_id() ) {
			return false;
		}
		if ( $this->has_status( 'refunded' ) ) {
			return false;
		}
		return $gateway->supports( 'refunds' ) ? true : false;
	}
public function is_refundable ( ) { $ gateway = wpcw ( ) -> gateways -> get_gateway ( $ this -> get_payment_method ( ) ) ; if ( is_null ( $ gateway ) || ! $ gateway instanceof Gateway ) { return false ; } if ( 'multiple' === $ this -> get_transaction_id ( ) ) { return false ; } if ( $ this -> has_status ( 'refunded' ) ) { return false ; } return $ gateway -> supports ( 'refunds' ) ? true : false ; }
Is Order Refundable?
Is Order Refundable?