how to implement a payment system in rails [closed]

一世执手 提交于 2019-12-06 21:27:00

问题


I am new to the rails world and am in the process of setting up a small rails app for a client. One of the requirements is that the user enters their credit card which gets charged for a specified amount.

I haven't had much experience with payment systems. I believe active merchant gem can be used for this purpose but how does actually charging the card work out and for testing purpose will I be able to charge a dummy account? From your experience, is it safe to go with a provider like paypal?


回答1:


You should checkout ActiveMerchant.

FYI Peepcode has a post on this:

http://peepcode.com/products/activemerchant-pdf




回答2:


Watch out, if you store or accept credit cards directly on your website you need to be PCI DSS compliant.

There are a number of solutions out there to overcome this issue, the first notably is to delegate the payment infrastructure to a third party like Recurly, since it also operates in Europe with different providers, but it's more on recurring payment.

The primary choice in US would be Braintree or the newest Stripe.com.

Braintree has another solution to keep the user never leave your site, it's called Transparent Redirect.



来源:https://stackoverflow.com/questions/6687376/how-to-implement-a-payment-system-in-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!