将nodejs与ruby集成以进行支付处理
我正在从头开始构建一个新网站(没有遗留代码),基本上是一个博客/wiki/论坛/电子商务之类的东西,但我有很多我想要的自定义东西,并且我愿意付出努力当我需要的时候去建造它们。我对那里的购物车不太满意,我不想使用 php,而且我认为着眼于未来,我想使用很多很棒的新技术。具体来说,我想使用 Node.js 和 MongoDB。
现在阻碍我的最大症结是付款处理。我知道有一个 Node.js 库可以进行支付处理,但我现在太担心它的稳定性了。我愿意处理一些可能的错误/稳定性,以提供博客文章,但我不想在信用卡数据等方面搞砸。
我目前的想法是,我现在最好的妥协是也许利用Ruby 的 Active Merchant 只进行支付处理。我的问题是:执行这种集成的最佳方法是什么?它看起来是不是一个好主意?我是否需要设置一个完整的网络服务器,并将 Rails 隐藏在节点或另一个代理后面,或者是否有更简单的方法来完成支付处理?
I'm building a new website from scratch (no legacy code) that is basically a blog/wiki/forum/ecommerce kind of thing, but I have a lot of custom things I want, and I'm willing to put in the effort to build them when I have to. I'm not really satisfied with the shopping carts out there, I don't want to use php, and I think there are a lot of great new technologies I'd like to use with my eye on the future. Specifically, I'd like to use Node.js and MongoDB.
My big sticking point that is holding me back right now is payment processing. I know that there is a library for node.js to do payment processing, but I'm too worried about its stability right now. I'm willing to deal with some possible bugs/stability serving up a blog post, but I do not want to screw around when it comes to credit card data, etc.
My current thinking is that my best compromise right now is to maybe leverage Ruby's Active Merchant to do just the payment processing. My question is: what is the best way to perform this integration, and does it even seem like a good idea? Do I need to set up a whole web server with rails hidden behind node or another proxy, or is there something simpler to just accomplish the payment processing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否看过如何使用 node.js 设置 Stripe 付款?
Have you seen How to setup Stripe payments with node.js?
我会选择类似的东西: http://www.braintree paymentsolutions.com/ — 它会让你的生活变得美好更轻松。
I would go for something like: http://www.braintreepaymentsolutions.com/ — It'll make your life easier.
我通过询问另一个关于使用 beanstalkd 发送的问题来寻求 ruby 集成解决方案付款处理工作。最后我决定尝试使用 redis 来代替使用 pub/sub 与 ruby 进行通信。
I pursued the ruby integration solution by asking another question about using beanstalkd for sending off payment processing jobs. In the end I have decided on trying to use redis instead to communicate with ruby using pub/sub.