0
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::UsaEpayGateway.new(
:login => "SOMEKEY"
)
のようなRailsアプリケーションにactivemerchant使用していると私はusaepayのためにエラーコード(10117)を見たとき、私は、このエラーコード
error_code: \"10117\"\nauth_code: \"000000\"\nstatus: Error\nerror: Transaction authentication required.\n
を得続ける私は私が必要とすることに注意してくださいピンに入る。これは私が持っているが、私は実装方法を知らない。私はこれらの2
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::UsaEpayGateway.new(
:login => "SOMEKEY",
:password => "MYPIN"
)
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::UsaEpayGateway.new(
:login => "SOMEKEY",
:pin => "MYPIN"
)
の下を試してみましたが、私はまだ私がログインを参照してくださいが、
def initialize(options = {})
requires!(options, :login)
@options = options
super
end
をピンませんUSAEPAYライブラリの初期化子を見てみると、同じエラー を取得...私はこのピンを送ったことができますどのように任意のアイデアActivemerchant
にUPDATEここ
がする。transaに私の呼び出しです
options = {
:card_code=>self.card_verification
:billing_address=>{
:address1=>self.billing_address,
:city=>self.city,
:state=>self.state,
:zip=>self.zip,
:country=>"US"
}
}
response = GATEWAY.purchase(price_in_cents, credit_card, options)
ction私はこの
options = {
:card_code=>self.card_verification,
:pin=>"333333",
:billing_address=>{
:address1=>self.billing_address,
:city=>self.city,
:state=>self.state,
:zip=>self.zip,
:country=>"US"
}
}
response = GATEWAY.purchase(price_in_cents, credit_card, options)
が、まだ何も
必ず私は私を助けるためにあなたを与えることができない何かがあるかどうか私に教えて...私は私の質問に貼り付け、私の質問 – Trace
を更新しましょう – Trace
あなたの助けをもう一度ありがとう – Trace