Skip to content

Commit 9c8d8df

Browse files
committed
use correct webhook signing key
1 parent 07c66e3 commit 9c8d8df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/api/routes/stripe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const stripeRoutes: FastifyPluginAsync = async (fastify, _options) => {
200200
event = stripe.webhooks.constructEvent(
201201
request.rawBody,
202202
sig,
203-
secretApiConfig.stripe_endpoint_secret as string,
203+
secretApiConfig.stripe_links_endpoint_secret as string,
204204
);
205205
} catch (err: unknown) {
206206
if (err instanceof BaseError) {

src/common/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export type SecretConfig = {
147147
apple_signing_cert_base64: string;
148148
stripe_secret_key: string;
149149
stripe_endpoint_secret: string;
150+
stripe_links_endpoint_secret: string;
150151
redis_url: string;
151152
};
152153

0 commit comments

Comments
 (0)