mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 03:00:57 +00:00
Update cheatsheets
This commit is contained in:
29
stripe
Normal file
29
stripe
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# stripe
|
||||
|
||||
> Interact with a Stripe account.
|
||||
> More information: <https://github.com/stripe/stripe-cli>.
|
||||
|
||||
- Follow the logs of activity on the account:
|
||||
|
||||
`stripe logs tail`
|
||||
|
||||
- Listen for events, filtering on events with the name `charge.succeeded` and forwarding them to localhost:3000/events:
|
||||
|
||||
`stripe listen --events="{{charge.succeeded}}" --forward-to="{{localhost:3000/events}}"`
|
||||
|
||||
- Send a test webhook event:
|
||||
|
||||
`stripe trigger {{charge.succeeded}}`
|
||||
|
||||
- Create a customer:
|
||||
|
||||
`stripe customers create --email="{{test@example.com}}" --name="{{Jenny Rosen}}"`
|
||||
|
||||
- Print to JSON:
|
||||
|
||||
`stripe listen --print-json`
|
||||
Reference in New Issue
Block a user