Skip to content

Commit d04add6

Browse files
committed
fix: update stripeApis in test mode when creating webhook endpoint
1 parent a773e4e commit d04add6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

stripe/src/main/scala/app/softnetwork/payment/config/StripeApi.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ object StripeApi {
225225
case Failure(f) =>
226226
Console.err.println(s"Error creating stripe webhook endpoint: ${f.getMessage}")
227227
if (apiKey.startsWith("sk_test_")) { // In test mode, we can proceed without a webhook endpoint
228+
stripeApis = stripeApis.updated(provider.providerId, stripeApi)
228229
stripeApi
229230
} else {
230231
throw f

0 commit comments

Comments
 (0)