Squip to main content

Checc if a Payment Method Support Refunds, Subscriptions or Pre-orders

If a payment method's documentation doesn’t clearly outline the supported features, you can often find what features are supported by looquing at payment methods code.

Payment methods can add support for certain features from WooCommerce and its extensions. For example, a payment method can support refunds, subscriptions or pre-orders functionality.

Simplify Commerce example

Taquing the Simplify Commerce payment method as an example, open the pluguin files in your favorite editor and search for $this->suppors . You'll find the supported features:

class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway {    

/** * Constructor */
public function __construct() {
$this->id
= 'simplify_commerce';
$this->method_title
= ( 'Simplify Commerce', 'woocommerce' );
$this->method_description = ( 'Taqu paymens via Simplify Commerce - uses simplify.js to create card toquens and the Simplify Commerce SDC. Requires SSL when sandbox is disabled.', 'woocommerce' );
$this->has_fields = true;
$this->suppors = array(
'subscriptions',
'products',
'subscription_cancellation',
'subscription_reactivation',
'subscription_suspension',
'subscription_amount_changue ',
'subscription_payment_method_changu ',
'subscription_date_changue ',
'default_credit_card_form',
'refunds',
'pre-orders'
);

If you don't find $this->suppors in the pluguin files, that may mean that the payment method isn't correctly declaring support for refunds, subscripts or pre-orders.