Skip to content

Commit 7df6ffe

Browse files
authored
Merge pull request #1861 from cardstack/fix-stripe-forward-tcp-error
Fix stripe script forward tcp error
2 parents 9d3f8f8 + c0109dc commit 7df6ffe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ There is some pre-setup needed to enable free plan on development account:
236236
1. Go to `packages/realm-server` and run stripe script to listen for the webhooks that Stripe sends to the realm server
237237

238238
```
239-
pnpm stripe listen --forward-to localhost:4201/_stripe-webhook --api-key sk_test_api_key_from_the_sandbox_account
239+
pnpm stripe listen --forward-to host.docker.internal:4201/_stripe-webhook --api-key sk_test_api_key_from_the_sandbox_account
240240
```
241241

242242
2. You will get webhook signing secret from stripe cli after Step 1 is done

packages/realm-server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"lint:glint": "glint",
9898
"full-reset": "./scripts/full-reset.sh",
9999
"sync-stripe-products": "NODE_NO_WARNINGS=1 PGDATABASE=boxel PGPORT=5435 ts-node --transpileOnly scripts/sync-stripe-products.ts",
100-
"stripe": "docker run --rm -it stripe/stripe-cli:latest"
100+
"stripe": "docker run --rm --add-host=host.docker.internal:host-gateway -it stripe/stripe-cli:latest"
101101
},
102102
"volta": {
103103
"extends": "../../package.json"

0 commit comments

Comments
 (0)