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

[BACKEND] Add Stripe service route testing #231

Open
7 tasks
jeffplays2005 opened this issue Apr 6, 2024 · 0 comments
Open
7 tasks

[BACKEND] Add Stripe service route testing #231

jeffplays2005 opened this issue Apr 6, 2024 · 0 comments
Labels
backend relating to code in the /server directory

Comments

@jeffplays2005
Copy link
Contributor

jeffplays2005 commented Apr 6, 2024

Use local stripe testing.

Command line commands:

yarn dev-server

^ Starts development test server

stripe listen --forward-to localhost:8000/webhook

^ Copy the webhook signing secret and set the .env, STRIPE_LOCAL= key to the secret key.

stripe trigger checkout.session.completed

^ Trigger a test event

Is your feature request related to a problem? Please describe.
It would be best to add a route testing for Stripe web hooks, would make development process easier for webhook testing.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Create a yarn stripe-test script, similar to yarn firebase-test.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

BEFORE MERGING

  • Integration test written for services
  • Schemas annotated if adding new models
  • Code generation run (hint: yarn workspace server tsoa spec-and-routes)
  • Appropriate mocks created where possible
  • PR Reviewed (For non-trivial changes)
  • Changes tested after rebasing on master or merging in master (hint: git fetch origin master:master, then git rebase master or git merge master)
  • All required PR checks passing
@jeffplays2005 jeffplays2005 added the backend relating to code in the /server directory label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend relating to code in the /server directory
Projects
None yet
Development

No branches or pull requests

1 participant