将nodejs与ruby集成以进行付款处理 [英] Integrate nodejs with ruby for payment processing

查看:102
本文介绍了将nodejs与ruby集成以进行付款处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从头开始构建新网站(没有旧代码),这基本上是博客/维基/论坛/电子商务之类的东西,但是我有很多想要的自定义内容,并且我愿意在需要时努力构建它们。我对那里的购物车不是很满意,我不想使用php,而且我想我会用很多很棒的新技术来展望未来。具体来说,我想使用Node.js和MongoDB。

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.

我目前遇到的最大障碍是付款处理。我知道有一个用于node.js进行付款处理的库,但是我现在太担心它的稳定性。我愿意处理博客文章中可能存在的错误/稳定性,但是我不想在涉及信用卡数据等问题时搞砸。

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.

我目前的想法是,我目前最大的妥协就是利用Ruby的Active Merchant进行付款处理。我的问题是:执行此集成的最佳方法是什么,它似乎还不错吗?我是否需要设置一个隐藏在节点或其他代理后面的导轨的整个Web服务器,或者是否有更简单的方法来完成付款处理?

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?

推荐答案

我通过寻求另一个问题,追求了ruby集成解决方案。关于使用beantalkd发送付款处理作业。最后,我决定尝试使用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.

这篇关于将nodejs与ruby集成以进行付款处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆