From 53222244ac34069df917ea42a72a02b2d9b896be Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 12 Feb 2022 09:10:10 +1100 Subject: [PATCH] Update webhook spec for Stripe --- app/Models/Gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index cbadc3ff1808..84b13e104c03 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -136,7 +136,7 @@ class Gateway extends StaticModel break; case 56: return [ - GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], + GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => ['payment_intent.succeeded']], 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],