Fix stripe init
MODIFY
src/integration/billing/stripe/StripeBillingIntegration.ts
src/integration/billing/stripe/StripeBillingIntegration.ts
@@ -691,11 +691,10 @@ export default class StripeBillingIntegration extends BillingIntegration<StripeB
}
private async initializeStripe() {
+ if (!this.stripe) {
this.settings.currency = this.stripeSettings.currency;
- if (this.settings.secretKey) {
this.settings.secretKey = await Cypher.decrypt(this.tenantID, this.stripeSettings.secretKey);
- }
- // Currently the public key is not encrypted
this.stripe = new Stripe(this.settings.secretKey);
}
}
+}

Fix stripe init