Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PAYLOAD_PUBLIC_CMS_URL=http://localhost:3000
MONGODB_URI=mongodb://localhost/stripe-plugin
MONGODB_URI=mongodb://localhost/payload-plugin-stripe
PAYLOAD_SECRET=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOKS_ENDPOINT_SECRET=
Expand Down
2 changes: 1 addition & 1 deletion src/webhooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const handleWebhooks: StripeWebhookHandler = async (args) => {
stripeConfig
} = args;

payload.logger.info(`🪝 Received Stripe '${event.type}' webhook event with ID: '${event.id}'.`);
if (stripeConfig?.logs) payload.logger.info(`🪝 Received Stripe '${event.type}' webhook event with ID: '${event.id}'.`);

// could also traverse into event.data.object.object to get the type, but that seems unreliable
// use cli: `stripe resources` to see all available resources
Expand Down