TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Cheap Recurring Payments with Stripe and AWS Lambda

299 点作者 sl8r将近 8 年前

16 条评论

stevekemp将近 8 年前
Remember that if you use stripe subscriptions you absolutely <i></i>must<i></i> setup a webhook, or otherwise examine your logs every month.<p>Why? If a customer is subscribed to a &quot;plan&quot;, and their payment fails it is retried three days later, then five days later, then eight days later, and if all three payments fail they&#x27;re quietly unsubscribed without any notification being sent to you!<p>I have a toy project which has paying customers and last month realized I&#x27;d had people using my SaaS for over a year without having paid me. A few failures in a row meant they were unsubscribed, and since I didn&#x27;t read the reports every month I didn&#x27;t notice.<p>I reworked my payment system now, to subscribe to webhooks and ensure I find out promptly in the future.<p>Not a huge deal at my volume, but a surprise I could have lived without.
评论 #14499821 未加载
评论 #14501124 未加载
评论 #14502416 未加载
评论 #14499966 未加载
oliwarner将近 8 年前
~3%, dirt cheap?!<p>Why are so many of you so happy to throw so much cash away to process money? I <i>know</i> Stripe is lovely to integrate but as a business you have to shop around.<p>In the UK (and EU) card processing is much cheaper. Stripe is closer to 2% but if you shop around, you&#x27;ll find somebody who&#x27;ll offer you 0.8-0.9%, give you free terminals and no monthly contract fees.<p>Edit for those asking: Worldpay and Handepay are the best rates I&#x27;ve seen recently. Both for online and off. But again, don&#x27;t just cluster around one company, harass a few yourself. They&#x27;re willing to compete.
评论 #14500352 未加载
评论 #14497912 未加载
评论 #14496354 未加载
评论 #14496773 未加载
评论 #14497415 未加载
评论 #14498362 未加载
评论 #14495926 未加载
评论 #14502462 未加载
评论 #14496278 未加载
评论 #14499422 未加载
评论 #14495882 未加载
mherrmann将近 8 年前
It&#x27;s unbelievable how easy this is with Stripe in comparison to PayPal. I had to do the latter a week ago and it was horrible [1]. It&#x27;s no wonder Stripe is so successful.<p>[1]: <a href="https:&#x2F;&#x2F;fman.io&#x2F;blog&#x2F;paypal-for-saas-99-problems&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fman.io&#x2F;blog&#x2F;paypal-for-saas-99-problems&#x2F;</a>
评论 #14495716 未加载
评论 #14496746 未加载
l5870uoo9y将近 8 年前
Stripe charges 2.9% + $0.30 per transaction, the others mentioned have a monthly fee and then lower transaction fees. So Stripe isn&#x27;t remarkably cheap.
评论 #14498203 未加载
评论 #14498658 未加载
评论 #14500632 未加载
PaulRobinson将近 8 年前
This is what people are missing on Lambda. It&#x27;s pay-to-play, and for 90% of the sites out there, they&#x27;re paying too much in comparison.<p>If you&#x27;re running server instances 24x7 for an application that is doing &lt; 25 requests&#x2F;minute on average, you would probably find your hosting costs come down (perhaps to zero) and your reliability would increase considerably if you moved to Lambda-style applications.<p>serverless.io is a decent framework to get started (allows for local dev and testing, manages deployment) and is agnostic in terms of deployment target: AWS, IBM, Google coming soon, etc.<p>The only reason we&#x27;re not rolling it out everywhere at work is because it assumes all developers are deploying directly from their term with god-like CloudFormation access. Nope, nope, nooope. We just need to build the deploy pipeline for it, and then off we go.
评论 #14495652 未加载
评论 #14496166 未加载
评论 #14497446 未加载
评论 #14497408 未加载
评论 #14495759 未加载
Mojah将近 8 年前
I&#x27;ve been using Laravel Spark [1] for recurring payments built on top of Stripe, and at a 100$ one-time fee for Spark and a small server setup (that I needed for the service in the first place) I think it&#x27;s a cheap option for recurring payments, too.<p>[1] <a href="https:&#x2F;&#x2F;spark.laravel.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;spark.laravel.com&#x2F;</a>
评论 #14498867 未加载
fenesiistvan将近 8 年前
The problem is that Stripe is still not usable in the half of the world, including my country, Romania.
评论 #14496071 未加载
评论 #14495839 未加载
ctcliff将近 8 年前
I maintain a small open source library for managing payments websites that uses this architecture [1]. My Lambda costs have been about $0.04 per transaction.<p>Also you can provision AWS from the browser using a CloudFormation template and a Launch Stack URL [2].<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;christophercliff&#x2F;flatmarket" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;christophercliff&#x2F;flatmarket</a>. [2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;christophercliff&#x2F;flatmarket#automated-deployments" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;christophercliff&#x2F;flatmarket#automated-dep...</a>
cpt_snowcrash将近 8 年前
I never got around getting the true value prop of recurring solutions such as chargebee etc when used on top of stripe. Stripe already provides excellent recurring subscription payments api out of the box, so why use any of these services. Am I missing something ?
评论 #14496209 未加载
评论 #14498047 未加载
评论 #14496185 未加载
ajainy将近 8 年前
Thanks for article. Though I known about Lambda for long time, but this is one nice example, how Lambda can be used. Now I am planning to use to develop some zapier like integrations.<p>-=-=<p>Having said that, before you jump into making free payment forms for your static site, keep PCI compliance in mind. (even if stripe is rendering form using js).
bigtunacan将近 8 年前
I&#x27;ve seen several comments on here about how high a percentage is being charged by credit card processors and this is something I&#x27;ve wondered about for a while. There are some sites where I feel like I must be missing something.<p>As an example; <a href="https:&#x2F;&#x2F;www.sendmoneytoschool.com" rel="nofollow">https:&#x2F;&#x2F;www.sendmoneytoschool.com</a>.<p>The site is used to pay online with a credit card for your children&#x27;s school lunch and it typically charges a $1.50 &quot;convenience fee&quot;. It is my understanding that they are not charging schools for the use of this service (I may be mistaken); at Stripe or PayPals fee rates this service would be losing money. Every $100 would incur at least a $2.00 fee. Here a low cost processor like Worldpay and Handepay would allow for a profit; albeit a very small one.
floodfx将近 8 年前
This is pretty cool but to be pedantic this is actually API Gateway proxying requests to AWS Lambda not just a Lambda function. Zappa and other Serverless Frameworks sort of obfuscate the fact that API Gateway is setup in front of Lambda but that is what is happening here. Again, cool example.
likelynew将近 8 年前
I can see many cases where there is need for more control. Yes, we can start and end manually, but is it acceptable to be that flaky with payments. I mean, I have managed my personal server in pretty ad-hoc way and more often than I expected there are some problems with something. I don&#x27;t think I can trust myself with lambda.
dheera将近 8 年前
Now if only my property manager could get with the beat and take electronic payments ... I still have to bike over to their office and drop off a physical check every month because they don&#x27;t take anything else.
评论 #14501295 未加载
评论 #14498329 未加载
Denzel将近 8 年前
This is simple and cool.<p>You&#x27;d still need some way to authorize subscribers on your website, no? Therefore, you couldn&#x27;t create a serverless subscription blog&#x2F;website... unless I&#x27;m missing something.
评论 #14496597 未加载
ousta将近 8 年前
id rather use XRP