Skip to content

Update README.md with Stripe Webhook/CLI details #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion examples/monetization-with-stripe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ This app has a paywall for a payed feature. To enable the payed feature, users n
2. Create a [payment link](https://dashboard.stripe.com/test/payment-links)
3. Update the link in the [PaywallNotice component](./components/PaywallNotice.tsx)
4. Add your [API keys](https://dashboard.stripe.com/apikeys) to the [.env file](.env)
5. For development, in your terminal:
5. [Create a webhook endpoint](https://dashboard.stripe.com/test/webhooks/create?endpoint_location=local) in Stripe (_test in a local environment_) and download the Stripe CLI tool:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember if I created a webhook. I only did the steps below with a different URL for step 2:
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's been a long time since this PR has been looked at - does it need to be merged or should we close it without merging @kirillsud ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked the manual one more time. I think it is valid

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but it has a conflict with main branch

1. `Brew install stripe/stripe-cli/stripe`
6. For development, in your terminal:
1. `stripe login`
2. `stripe listen --forward-to localhost:3000/api/payment-handler`
3. Copy the webhook signing secret from console output
Expand Down