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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is there any place to read about Payment system pitfalls?

3 点作者 tuyguntn超过 7 年前
We are adding payment system into our product. We want to know what kind of pitfalls we may encounter while building such system. Patterns used while developing payment systems. What kind of architecture are used by other systems and so on. (We don't have guys with prior experience with building scalable payment system, other than integrating Stripe or similar things)

1 comment

bruhbruhbruh超过 7 年前
These pitfalls sound specific to payment systems, but really they&#x27;re just software engineering pitfalls viewed through a payment lens.<p>Be careful around the types you&#x27;re using to represent monetary amounts. Strongly typed languages will give you some defense against accidental rounding errors (don&#x27;t use floats).<p>Are you adding a payment system to a product or are you creating a payment service that your product will use? Coupling your product &#x2F; business logic with your payment&#x2F;billing code may work for now... but in a year you may need to add another consumer or extend the billing code in a way that won&#x27;t be possible if it&#x27;s too tightly coupled with the business logic. Will you need to support multiple payment options per user? Subscriptions?<p>Also, if you&#x27;re planning on using a single CC processor, Stripe is a pretty good choice. Just be careful about the coupling I mentioned earlier, you don&#x27;t want to be too tightly coupled to any external services (like Stripe or another processor).<p>Another thing to keep in mind -- what does downtime look like? Will your payments fail, will you lose customers? Or is it designed to handle and recover from downtime.