diff --git a/infra/console.ts b/infra/console.ts index bd0af2b1..b898995d 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -1,4 +1,3 @@ -import { WebhookEndpoint } from "pulumi-stripe" import { domain } from "./stage" //////////////// @@ -68,7 +67,7 @@ export const auth = new sst.cloudflare.Worker("AuthApi", { // GATEWAY //////////////// -export const stripeWebhook = new WebhookEndpoint("StripeWebhookEndpoint", { +export const stripeWebhook = new stripe.WebhookEndpoint("StripeWebhookEndpoint", { url: $interpolate`https://${domain}/stripe/webhook`, enabledEvents: [ "checkout.session.async_payment_failed", diff --git a/sst.config.ts b/sst.config.ts index ba17f9f7..a1878739 100644 --- a/sst.config.ts +++ b/sst.config.ts @@ -1,4 +1,5 @@ /// + export default $config({ app(input) { return {