From 067c97a0a999d7e221c2ab827b661a1a9df98b16 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 21 Sep 2021 19:55:15 +1000 Subject: [PATCH] Fixes for Stripe payment methods --- app/Models/Gateway.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index d67361ab461b..4414a685c9b0 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -95,6 +95,11 @@ class Gateway extends StaticModel return [GatewayType::PAYPAL => ['refund' => true, 'token_billing' => false]]; //Paypal break; case 20: + return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], + GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable','charge.succeeded']], + GatewayType::ALIPAY => ['refund' => false, 'token_billing' => false], + GatewayType::APPLE_PAY => ['refund' => false, 'token_billing' => false], + GatewayType::SOFORT => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']]]; //Stripe case 39: return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true]]; //Checkout break;