-
Notifications
You must be signed in to change notification settings - Fork 158
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: deno task init:stripe
and further documentation improvements
#93
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine as a v1, but I'm wondering if providing some flags would make sense? Not sure if it is in scope for this "getting started" script.
What do you suggest?
It was deliberately written to replace instructions with automatic setup. Why would that be? |
|
||
async function createPremiumTierProduct(stripe: Stripe) { | ||
return await stripe.products.create({ | ||
name: "Premium tier", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if the stuff in this object should be configurable? Does that make any sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion. Though, we'll leave this as-is for now in the spirit of prioritising ease of setup over customizability. Either way, I've improved the comment.
That seems good enough for now. LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I think this will prevent a lot of headache for people starting out with Stripe
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
README.md
Outdated
[your Stripe dashboard settings](https://dashboard.stripe.com/test/apikeys) | ||
to copy the `STRIPE_SECRET_KEY` into your `.env` file. We recommend using the | ||
test key for your development environment. | ||
> Note: go to [init/stripe.ts] if you'd like to learn more about how the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@niklasmtj, regarding #93 (comment), I'd rather have one or the other. I've added this comment to point people in the right direction if they want to learn more. At some point, I'll include technical details as JSDoc comments in the implementation to give an even more precise idea of what's happening. Do you think this addresses your concern?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me 👍🏼
deno task init:stripe
deno task init:stripe
and further documentation improvements
I just tested this locally, and it works! 🥳 |
Previously, a bit of manual work was required to set up Stripe. This change adds the init:stripe task, which:
This dramatically reduces the time and steps needed and the chance of errors in setting up Stripe.
Contributors, please feel free to test and provide feedback.