【发布时间】:2018-03-25 00:20:19
【问题描述】:
我正在使用带有 ActiveMarchent 的 Stripe 支付网关,我已经实现了如下源代码:
ActiveMerchant::Billing::Base.mode = :test
ActiveMerchant::Billing::StripeGateway.new(:login => 'sk_test_...')
我得到了下面的错误,我花了很多时间寻找解决方案,但是我没有找到它:
params:
error:
type: invalid_request_error
message: Sending credit card numbers directly to the Stripe API is generally unsafe.
We suggest you use test tokens that map to the test card you are using, see
https://stripe.com/docs/testing.
谢谢
【问题讨论】:
标签: ruby-on-rails ruby stripe-payments activemerchant