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: Subscriptions with Stripe function #2

Merged
merged 37 commits into from
Sep 13, 2023

Conversation

loks0n
Copy link
Member

@loks0n loks0n commented Jul 11, 2023

What does this PR do?

Adds a function to demo integration with Stripe.

  • Database collection 'Subscribers' to track user subscriptions
  • /checkout endpoint takes users to a stripe checkout page, where users can pay for Premium membership.
  • /webhook endpoints to upgrade/downgrade the user based on stripe events.

Test Plan

You can run the function locally by creating the neccessary .env and executing npx appwrite-function-utils dev src/main.js

armang4.appwrite.org link:

Have you read the Contributing Guidelines on issues?

Yes

@Meldiron Meldiron merged commit 99c5588 into main Sep 13, 2023
@Meldiron Meldiron deleted the feat-subscriptions-with-stripe branch September 13, 2023 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants