pretendo-docker/patches/website/stripe-disable.patch
Matthew Lopez 918a904081
Add the Pretendo Network website server
Lots of patches here because the server crashes if Stripe, GitHub, Discord, etc. are not configured.
2023-12-18 20:56:28 -05:00

16 lines
587 B
Diff

diff --git i/src/stripe.js w/src/stripe.js
index eddb382..b60c1c2 100644
--- i/src/stripe.js
+++ w/src/stripe.js
@@ -5,9 +5,8 @@ const database = require('./database');
const logger = require('./logger');
const config = require('../config.json');
-const stripe = new Stripe(config.stripe.secret_key);
-
async function handleStripeEvent(event) {
+ return;
if (event.type === 'customer.subscription.updated' || event.type === 'customer.subscription.deleted') {
const subscription = event.data.object;
const product = await stripe.products.retrieve(subscription.plan.product);