Skip to content

Commit

Permalink
Fix stripe app
Browse files Browse the repository at this point in the history
  • Loading branch information
devkiran committed Jan 15, 2025
1 parent 37ac288 commit e004b88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/stripe-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
4 changes: 2 additions & 2 deletions packages/stripe-app/src/utils/dub.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DUB_HOST } from "./constants";
import { DUB_API_HOST } from "./constants";
import { Token } from "./types";

// Update the workspace with stripeAccountId
Expand All @@ -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: {
Expand Down
8 changes: 5 additions & 3 deletions packages/stripe-app/stripe-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""
Expand All @@ -67,4 +69,4 @@
],
"stripe_api_access_type": "oauth",
"distribution_type": "public"
}
}

0 comments on commit e004b88

Please sign in to comment.