From ce6537852cc2cd7e0631b3cdd1f58684f5d9b2e3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 11 Jan 2023 12:14:36 +1100 Subject: [PATCH] Update stripe webhooks --- app/Models/Gateway.php | 4 ++-- lang/en/texts.php | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 3e6df76d7e65..22d7f927f9a8 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -103,7 +103,7 @@ class Gateway extends StaticModel case 20: return [ 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', 'customer.source.updated']], + GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded', 'customer.source.updated','payment_intent.processing']], 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', 'payment_intent.succeeded']], @@ -140,7 +140,7 @@ class Gateway extends StaticModel case 56: //Stripe return [ 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', 'customer.source.updated']], + GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded', 'customer.source.updated','payment_intent.processing']], 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', 'payment_intent.succeeded']], diff --git a/lang/en/texts.php b/lang/en/texts.php index 365b1f1362dd..3328738d4297 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -202,7 +202,7 @@ $LANG = array( 'invoice_error' => 'Please make sure to select a client and correct any errors', 'limit_clients' => 'Sorry, this will exceed the limit of :count clients. Please upgrade to a paid plan.', 'payment_error' => 'There was an error processing your payment. Please try again later.', - 'registration_required' => 'Please sign up to email an invoice', + 'registration_required' => 'Registration Required', 'confirmation_required' => 'Please confirm your email address, :link to resend the confirmation email.', 'updated_client' => 'Successfully updated client', 'archived_client' => 'Successfully archived client', @@ -4922,8 +4922,11 @@ $LANG = array( 'matomo_url' => 'Matomo URL', 'matomo_id' => 'Matomo Id', 'action_add_to_invoice' => 'Add To Invoice', + 'danger_zone' => 'Danger Zone', + ); + return $LANG; ?>