Skip to content

Instantly share code, notes, and snippets.

@axelgar
Last active May 28, 2023 20:13
Show Gist options
  • Save axelgar/b7c6e489767eeca8681d396b7d1deed2 to your computer and use it in GitHub Desktop.
Save axelgar/b7c6e489767eeca8681d396b7d1deed2 to your computer and use it in GitHub Desktop.
@nevanscott
Copy link

This is making sense to me as a starting point!

I imagine that in addition to generating the links, we'll need some way to get the payment link for a specific product so that it can be displayed somewhere. We aren't using IDs, so I think what make a product unique could be a combination of course and startDate, something like that?

We'll probably have to think through some of those details...

@nevanscott
Copy link

Oh wait, I see, so it would use "Products" in the Stripe sense. Got it.

@nevanscott
Copy link

So then in theory we also need to do something like getOrCreateProduct for each course/start_date combo, which I've been thinking of naming cohort. I'm also open to splitting the two, and separately keeping track of cohort sign ups and paid status, which might allow for reusing the same product / payment link for different start dates?

@axelgar
Copy link
Author

axelgar commented May 28, 2023

Yes, one of the main things I was concerned about was how we could uniquely identify the different cohorts. I also think, combining course and startDate might be the best option... Also, I wanted to check with you again what was the mapping for course/cohort to stripe, like, is cohort each product in stripe, or is the course, and then maybe we can have payment links for the same products but different dates (I have to check if this is possible 🤔),

Duplicating this comment in the PR in case we want to keep the conversation there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment