Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
10 changes: 10 additions & 0 deletions apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ export const POST = withAxiom(async (req: Request) => {
});
}

// When an app is installed in both live & test mode,
// test mode events are sent to both the test mode and live mode endpoints,
// and live mode events are sent to the live mode endpoint.
// See: https://docs.stripe.com/stripe-apps/build-backend#event-behavior-depends-on-install-mode
if (!event.livemode && mode === "live") {
return logAndRespond(
`Received a test webhook event (${event.type}) on our live webhook receiver endpoint, skipping...`,
);
}

let response = "OK";

switch (event.type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ function BasicInfoForm({
<CountryCombobox
value={field.value || ""}
onChange={field.onChange}
error={errors.country ? true : false}
disabledTooltip="Your country cannot be changed once set. If you need to update your country, please contact support."
/>
)}
Expand Down