Skip to content
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

Stripe Python API Reference (Main Issue) #180

Open
ngupta23 opened this issue Oct 2, 2024 · 0 comments
Open

Stripe Python API Reference (Main Issue) #180

ngupta23 opened this issue Oct 2, 2024 · 0 comments
Labels
python Anything related to Python stripe

Comments

@ngupta23
Copy link
Owner

ngupta23 commented Oct 2, 2024

Overview

Useful code snippets

Testing

Testing Payments

Overview

Webhooks

  • If you want to listen to events (customer activity) happening on stripe, refer to the documentation here. This can be useful when you want to take some automated action based on the customer's activity.
  • This also includes details on how to test the webhook locally by connecting it to the "test" mode in stripe dashboard. This can be done by
    # 1. launch the listener locally
    python -m mylib.webhooks.stripe_events_listener.api
    
    # 2. redirect the dashboard output to this local listener endpoint.
    stripe login
    stripe listen --forward-to http://localhost:8000/stripe_webhook
  • Then when you trigger any event on the test dashboard, it will call the local listener.

Stripe CLI

@ngupta23 ngupta23 added python Anything related to Python stripe labels Oct 2, 2024
@ngupta23 ngupta23 changed the title Stripe Python API Reference Stripe Python API Reference (Main Issue) Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Anything related to Python stripe
Projects
None yet
Development

No branches or pull requests

1 participant