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

feat: Add Stripe API #97

Merged
merged 14 commits into from
Sep 27, 2023
Merged

feat: Add Stripe API #97

merged 14 commits into from
Sep 27, 2023

Conversation

jonas-martinez
Copy link
Collaborator

@jonas-martinez jonas-martinez commented Sep 22, 2023

About this PR

Linked to lenra-io/lenra_cli#320

In this PR, I have added API definitions to properly call the new endpoints on the server for Stripe subscriptions handling.

I added these API definitions:

  • POST /stripe/customers -- To Create or Get the Customer for the current user.
  • GET /stripe/subscriptions -- To get the subscription or nothing for the current application of the user.
  • POST /stripe/checkout -- To proceed to the Stripe payment page for the selected subscription.
  • GET /stripe/customer_portal -- To proceed to the Stripe Customer portal which makes it possible to manage your subscriptions across all of your applications.

Checklist

  • I didn't over-scope my PR
  • My PR title matches the commit convention
  • I did not include breaking changes
  • I made my own code-review before requesting one

I included unit tests that cover my changes

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

I added/updated the documentation about my changes

  • 📜 README.md
  • 📕 docs/*.md
  • 📓 docs.lenra.io
  • 🙅 no documentation needed

@jonas-martinez jonas-martinez added the enhancement New feature or request label Sep 22, 2023
@jonas-martinez jonas-martinez self-assigned this Sep 22, 2023
@jonas-martinez jonas-martinez merged commit 6959b0a into beta Sep 27, 2023
3 checks passed
@jonas-martinez jonas-martinez deleted the stripe branch September 27, 2023 09:51
taorepoara pushed a commit that referenced this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant