このようなレールアプリケーションでactivemerchantを使用しています
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::UsaEpayGateway.new(
:login => "SOMEKEY"
)
そして、私はこのエラーコードを受け取り続けます
error_code: \"10117\"\nauth_code: \"000000\"\nstatus: Error\nerror: Transaction authentication required.\n
usaepayのエラー コード (10117) を見ると、ピンを入力する必要があることに気付きました。これは私が持っていますが、実装方法がわかりません。以下の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"
)
それでも同じエラーが発生しますUSAEPAYライブラリのイニシャライザを見ると、ログインは表示されますが、ピンは表示されません
def initialize(options = {})
requires!(options, :login)
@options = options
super
end
...このピンをActivemerchantに送信する方法についてのアイデア
アップデート
ここにトランザクションへの私の呼び出しがあります
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)
私はこれをやろうとした
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)
しかし、まだ何も