From dfff15035cb7e2ea579df6dfa354b1255b9ff09a Mon Sep 17 00:00:00 2001 From: Tunbosun Ayinla Date: Wed, 10 Jun 2026 19:43:39 +0400 Subject: [PATCH] Add support for refunds in custom gateways --- .../gateway-five/class-wc-gateway-paystack-five.php | 1 + .../gateway-four/class-wc-gateway-paystack-four.php | 1 + .../gateway-one/class-wc-gateway-paystack-one.php | 1 + .../gateway-three/class-wc-gateway-paystack-three.php | 1 + .../gateway-two/class-wc-gateway-paystack-two.php | 1 + 5 files changed, 5 insertions(+) diff --git a/includes/custom-gateways/gateway-five/class-wc-gateway-paystack-five.php b/includes/custom-gateways/gateway-five/class-wc-gateway-paystack-five.php index 5728db3..be1624d 100644 --- a/includes/custom-gateways/gateway-five/class-wc-gateway-paystack-five.php +++ b/includes/custom-gateways/gateway-five/class-wc-gateway-paystack-five.php @@ -66,6 +66,7 @@ public function __construct() { $this->supports = array( 'products', + 'refunds', 'tokenization', 'subscriptions', 'multiple_subscriptions', diff --git a/includes/custom-gateways/gateway-four/class-wc-gateway-paystack-four.php b/includes/custom-gateways/gateway-four/class-wc-gateway-paystack-four.php index de2c4ba..4ae16b8 100644 --- a/includes/custom-gateways/gateway-four/class-wc-gateway-paystack-four.php +++ b/includes/custom-gateways/gateway-four/class-wc-gateway-paystack-four.php @@ -66,6 +66,7 @@ public function __construct() { $this->supports = array( 'products', + 'refunds', 'tokenization', 'subscriptions', 'multiple_subscriptions', diff --git a/includes/custom-gateways/gateway-one/class-wc-gateway-paystack-one.php b/includes/custom-gateways/gateway-one/class-wc-gateway-paystack-one.php index 876e83a..097444f 100644 --- a/includes/custom-gateways/gateway-one/class-wc-gateway-paystack-one.php +++ b/includes/custom-gateways/gateway-one/class-wc-gateway-paystack-one.php @@ -66,6 +66,7 @@ public function __construct() { $this->supports = array( 'products', + 'refunds', 'tokenization', 'subscriptions', 'multiple_subscriptions', diff --git a/includes/custom-gateways/gateway-three/class-wc-gateway-paystack-three.php b/includes/custom-gateways/gateway-three/class-wc-gateway-paystack-three.php index f0e08d3..4fa6ad3 100644 --- a/includes/custom-gateways/gateway-three/class-wc-gateway-paystack-three.php +++ b/includes/custom-gateways/gateway-three/class-wc-gateway-paystack-three.php @@ -66,6 +66,7 @@ public function __construct() { $this->supports = array( 'products', + 'refunds', 'tokenization', 'subscriptions', 'multiple_subscriptions', diff --git a/includes/custom-gateways/gateway-two/class-wc-gateway-paystack-two.php b/includes/custom-gateways/gateway-two/class-wc-gateway-paystack-two.php index 3bf4124..27fea1d 100644 --- a/includes/custom-gateways/gateway-two/class-wc-gateway-paystack-two.php +++ b/includes/custom-gateways/gateway-two/class-wc-gateway-paystack-two.php @@ -66,6 +66,7 @@ public function __construct() { $this->supports = array( 'products', + 'refunds', 'tokenization', 'subscriptions', 'multiple_subscriptions',