sandstorm-io / blackrock

Cluster management
Apache License 2.0
74 stars 13 forks source link

Implement invoicing. #19

Closed kentonv closed 8 years ago

kentonv commented 8 years ago

This adds a Stripe webhook endpoint to receive "invoice.payment_succeeded" and "invoice.payment_failed" events. Both result in emailing the user, and payment_failed also demotes the user to the free plan.

The emails are currently very sparse. Would like help from @neynah to design better ones.

paulproteus commented 8 years ago

IMHO sparse emails are nice.

Regardless, I'm excited this is happening!

kentonv commented 8 years ago

@jparyani Ugh, sorry, somehow I failed to commit all my changes before pushing. There was a bunch of stuff missing from what you reviewed. Both your comments had already been addressed.

I've added that now, and also implemented Nena's design. Screenshot below -- but note that the purpleness of the text is because gmail thinks it is a quote; the actual text is black.

invoice

jparyani commented 8 years ago

LGTM other than some small nitpick comments.