From c9176997eb8bff3432766c5bc42d6ddfad56c1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Manciot?= Date: Thu, 18 Jun 2026 19:36:08 +0200 Subject: [PATCH 1/2] feat(audit): log creation/updating of Stripe webhook endpoint with provider info --- .../main/scala/app/softnetwork/payment/config/StripeApi.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stripe/src/main/scala/app/softnetwork/payment/config/StripeApi.scala b/stripe/src/main/scala/app/softnetwork/payment/config/StripeApi.scala index 0bf38a2..ea4203c 100644 --- a/stripe/src/main/scala/app/softnetwork/payment/config/StripeApi.scala +++ b/stripe/src/main/scala/app/softnetwork/payment/config/StripeApi.scala @@ -136,6 +136,10 @@ object StripeApi { val url = s"${config.hooksBaseUrl}?hash=$hash" + log.info( + s"Creating / updating Stripe webhook endpoint for provider ${provider.providerId} at ${config.hooksBaseUrl}?hash=*****" + ) + import scala.jdk.CollectionConverters._ Try { From 7ad1f05441d9e433f6405f16e3eabc7a8a2e9409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Manciot?= Date: Thu, 18 Jun 2026 19:45:57 +0200 Subject: [PATCH 2/2] feat(audit): update Stripe configuration to use environment variables for client ID and API key --- stripe/src/main/resources/reference.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stripe/src/main/resources/reference.conf b/stripe/src/main/resources/reference.conf index ebb52cc..ad7b4b9 100644 --- a/stripe/src/main/resources/reference.conf +++ b/stripe/src/main/resources/reference.conf @@ -1,8 +1,8 @@ payment { stripe { - client-id: "ca_QQJL4CURRIF60JfEkBpsQaFR3piC14uB" #acct_1PZSi4RoAUNlu6LY + client-id: null client-id: ${?STRIPE_CLIENT_ID} - api-key: "sk_test_51PZSi4RoAUNlu6LYA6opFyXxSM9U7Q2C0pHDbFnk92MJdOEEvREmcvW7ZlRim2ebZaLc8Nf0sejbcef5Bri7xMJj009Ps5fBSK" + api-key: null api-key: ${?STRIPE_API_KEY} baseUrl = "https://api.stripe.com" base-url = ${payment.stripe.baseUrl}