1. Documentation
  2. Codex

Check if a Payment Gateway Support Refunds, Subscriptions or Pre-orders

Check if a payment gateway supports refundssubscriptions or pre-orders by looking at gateway code.

Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our  Support Policy.

Simplify Commerce example ↑ Back to top

In case you should search for $this->supports, as shown in the example below from the Simplify Commerce gateway:

class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway {    

/**      * Constructor   */
    public function __construct() {
                 = 'simplify_commerce';
       = __( 'Simplify Commerce', 'woocommerce' );
        $this->method_description = __( 'Take payments via Simplify Commerce - uses simplify.js to create card tokens and the Simplify Commerce SDK. Requires SSL when sandbox is disabled.', 'woocommerce' );
        $this->has_fields         = true;
        $this->supports           = array(

If you don’t find $this->supports, means that the gateway not accept refunds, subscripts or pre-orders.


The most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment