Skip to content

Stripe initial impl#27

Merged
davidcheung merged 6 commits intomainfrom
stripe-initial-impl
May 17, 2021
Merged

Stripe initial impl#27
davidcheung merged 6 commits intomainfrom
stripe-initial-impl

Conversation

@davidcheung
Copy link
Copy Markdown
Contributor

No description provided.

@davidcheung davidcheung force-pushed the stripe-initial-impl branch 2 times, most recently from 522aa98 to 0b5abde Compare April 27, 2021 17:49
@davidcheung davidcheung force-pushed the stripe-initial-impl branch from 0b5abde to b2713dc Compare April 27, 2021 17:50
@davidcheung davidcheung marked this pull request as ready for review April 27, 2021 17:50
@davidcheung davidcheung requested a review from bmonkman April 27, 2021 17:50
Comment thread scripts/setup-stripe-secrets.sh
Comment thread templates/kubernetes/base/deployment.yml Outdated
Comment thread templates/package.json Outdated
Comment thread templates/scripts/stripe-example-setup.sh
Comment thread templates/scripts/stripe-example-setup.sh Outdated
Comment thread templates/src/app/public/index.js Outdated
Comment thread templates/src/app/billing/index.js Outdated
res.redirect(`${FRONTEND_URL}/billing/confirmation?&${mapToQueryString(data)}`)
});

router.use("/webhook*", async (req, res) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we use the proper /webhook/stripe path to be clear and to make it more obvious that there could be other webhooks here.

Copy link
Copy Markdown
Contributor Author

@davidcheung davidcheung Apr 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry I actually moved this to
just <api>/webhook/ in the public and forgot to remove this one

because of the way oathkeeper is setup its hard to route anything unauthenticated request into <api>/billing

Comment thread zero-module.yml
"no": "No"
- field: stagingStripePublicApiKey
label: "Staging Stripe public api key, used for frontend repository (Recommended: using sandbox key while setting up)"
conditions:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice that we can have these conditionals now! 😂

Comment thread templates/src/app/public/index.js Outdated
});
<% if eq (index .Params `billingEnabled`) "yes" %>
// Logging out webhooks for development purposes
router.use("/webhook", (req, res) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to handle /webhook/stripe to be more explicit?

@davidcheung davidcheung merged commit 5f551b1 into main May 17, 2021
@davidcheung davidcheung deleted the stripe-initial-impl branch May 17, 2021 17:50
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.

2 participants