Skip to content

Commit

Permalink
Merge pull request #1900 from dubinc/update-stripe
Browse files Browse the repository at this point in the history
Update Stripe installation URL
  • Loading branch information
steven-tey authored Jan 15, 2025
2 parents 6526eee + 63632bd commit fdd1fa2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 42 deletions.
3 changes: 1 addition & 2 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

# Stripe App
STRIPE_APP_INSTALL_URL=
# Stripe App webhook events
STRIPE_APP_WEBHOOK_SECRET=

# Shopify App webhook events
Expand Down
5 changes: 1 addition & 4 deletions apps/web/lib/actions/get-integration-install-url.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use server";

import { getSlackInstallationUrl } from "../integrations/slack/install";
import { getStripeInstallationUrl } from "../integrations/stripe/install";
import z from "../zod";
import { authActionClient } from "./safe-action";

Expand All @@ -19,9 +18,7 @@ export const getIntegrationInstallUrl = authActionClient

let url: string | null = null;

if (integrationSlug === "stripe") {
url = await getStripeInstallationUrl(workspace.id);
} else if (integrationSlug === "slack") {
if (integrationSlug === "slack") {
url = await getSlackInstallationUrl(workspace.id);
} else {
throw new Error("Invalid integration slug");
Expand Down
33 changes: 0 additions & 33 deletions apps/web/lib/integrations/stripe/install.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
"version": "0.1.17",
"version": "0.1.18",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/src/constants/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ const BUSINESS_PLAN_MODIFIER = ({
},
{
id: "webhooks",
text: "Event webhooks (beta)",
text: "Real-time webhooks",
footnote: {
title:
"Get notified when a link is clicked or a QR code is scanned using webhooks.",
"Use webhooks to connect Dub with your data stack and workflows – with native integrations for Segment, Zapier, Slack, and more.",
cta: "Learn more.",
href: "https://d.to/webhooks",
},
Expand Down

0 comments on commit fdd1fa2

Please sign in to comment.