Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix stripe app

Kiran Ke004b88f6f2f
diff --git a/packages/stripe-app/README.md b/packages/stripe-app/README.md
index 8da3a131b8..11c8405c90 100644
--- a/packages/stripe-app/README.md
+++ b/packages/stripe-app/README.md
@@ -12,5 +12,5 @@ This is the [Stripe app](https://marketplace.stripe.com/apps/dub-conversions) fo
## Run locally
```
-stripe apps dev
+stripe apps start
```
diff --git a/packages/stripe-app/src/utils/dub.ts b/packages/stripe-app/src/utils/dub.ts
index 12938357e9..b07c60e988 100644
--- a/packages/stripe-app/src/utils/dub.ts
+++ b/packages/stripe-app/src/utils/dub.ts
@@ -1,4 +1,4 @@
-import { DUB_HOST } from "./constants";
+import { DUB_API_HOST } from "./constants";
import { Token } from "./types";
// Update the workspace with stripeAccountId
@@ -12,7 +12,7 @@ export async function updateWorkspace({
accountId: string | null;
}) {
const response = await fetch(
- `${DUB_HOST}/api/stripe/integration?workspaceId=${workspaceId}`,
+ `${DUB_API_HOST}/stripe/integration?workspaceId=${workspaceId}`,
{
method: "PATCH",
headers: {
diff --git a/packages/stripe-app/stripe-app.json b/packages/stripe-app/stripe-app.json
index 0536873f1b..37aec1d5e3 100644
--- a/packages/stripe-app/stripe-app.json
+++ b/packages/stripe-app/stripe-app.json
@@ -50,8 +50,10 @@
],
"content_security_policy": {
"connect-src": [
- "https://api.dub.co/oauth/token",
- "https://api-staging.dub.co/oauth/token"
+ "https://api.dub.co/oauth/",
+ "https://api-staging.dub.co/oauth/",
+ "https://api.dub.co/stripe/integration",
+ "https://api-staging.dub.co/stripe/integration"
],
"image-src": null,
"purpose": ""
@@ -67,4 +69,4 @@
],
"stripe_api_access_type": "oauth",
"distribution_type": "public"
-}
\ No newline at end of file
+}