Documents
-
Check if a Payment Gateway Support Refunds, Subscriptions or Pre-orders
Check if a payment gateway supports refunds, subscriptions or pre-orders by looking at gateway code. Simplify Commerce example 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() { $this->id = ‘simplify_commerce’; $this->method_title = __( ‘Simplify Commerce’, ‘woocommerce’ ); $this->method_description […]