我使用與ActiveMarchent條紋支付網關,我已經實現如下的源代碼:條紋付款:PARAMS:錯誤:類型:invalid_request_error
ActiveMerchant::Billing::Base.mode = :test
ActiveMerchant::Billing::StripeGateway.new(:login => 'sk_test_...')
,我得到了下面的錯誤,我花了很多時間尋找一個解決方案,但invain我沒有找到它:
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.
謝謝
謝謝,這意味着我應該把令牌而不是卡號? – Rodrigo