From eda0044c429f7c1a1b945ce085069d57119783ad Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 17 Sep 2023 18:44:05 +1000 Subject: [PATCH] Add webhooks for gocardless --- app/Models/Gateway.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 80c5b391d7c0..681889a68e88 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -175,10 +175,10 @@ class Gateway extends StaticModel ]; case 52: return [ - GatewayType::BANK_TRANSFER => ['refund' => false, 'token_billing' => true, 'webhooks' => [' ']], // GoCardless - GatewayType::DIRECT_DEBIT => ['refund' => false, 'token_billing' => true, 'webhooks' => [' ']], - GatewayType::SEPA => ['refund' => false, 'token_billing' => true, 'webhooks' => [' ']], - GatewayType::INSTANT_BANK_PAY => ['refund' => false, 'token_billing' => true, 'webhooks' => [' ']], + GatewayType::BANK_TRANSFER => ['refund' => false, 'token_billing' => true, 'webhooks' => ['confirmed','paid_out','failed','fulfilled']], // GoCardless + GatewayType::DIRECT_DEBIT => ['refund' => false, 'token_billing' => true, 'webhooks' => ['confirmed','paid_out','failed','fulfilled']], + GatewayType::SEPA => ['refund' => false, 'token_billing' => true, 'webhooks' => ['confirmed','paid_out','failed','fulfilled']], + GatewayType::INSTANT_BANK_PAY => ['refund' => false, 'token_billing' => true, 'webhooks' => ['confirmed','paid_out','failed','fulfilled']], ]; case 58: return [