Skip to content

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.

4 participants