Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6727405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:02:44+00:00 2026-05-26T10:02:44+00:00

I am using activemerchant in a rails application like this ActiveMerchant::Billing::Base.mode = :test ::GATEWAY

  • 0

I am using activemerchant in a rails application like this

ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::UsaEpayGateway.new(
  :login => "SOMEKEY"
)

and I keep getting this error code

error_code: \"10117\"\nauth_code: \"000000\"\nstatus: Error\nerror: Transaction authentication required.\n

when i look at the error codes (10117) for usaepay I notice that i need to enter in the pin. This I have, but i dont know how to implement. I tried these two below

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"
)

and I still get the same error
Looking at the USAEPAY Library’s initializer I see login but not pin

  def initialize(options = {})
    requires!(options, :login)
    @options = options
    super
   end  

…any ideas how I can sent this pin into Activemerchant

UPDATE

here is my call to the transaction

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)

i tried to do this

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)

but still nothing

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:02:45+00:00Added an answer on May 26, 2026 at 10:02 am

    Maybe you need to pass the authorization pin into the transaction. Can you paste the code where you call a transaction, please?

    For example, calling this method: capture(money, authorization, options = {})

    Edit:

    I don’t think ActiveMerchant has the pin feature implemented. Here are your options:

    1. Use another script. Here are some examples: http://wiki.usaepay.com/developer/ruby
    2. Add this to your Gemfile: gem 'activemerchant', :git => 'git://github.com/kalinchuk/active_merchant.git' It will install a gem from my github account. I added the pin field to active merchant.

    You can then call:

    ::GATEWAY = ActiveMerchant::Billing::UsaEpayGateway.new(
        :login => "SOMEKEY",
        :pin => "PIN"
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on the billing component of a Ruby on Rails application using
I'm using Rails 3.1 and ActiveMerchant 1.17 I'm calling the PaymentExpress gateway, using the
I have created a test account with Authorize.net and am using ActiveMerchant to process
Using Rails 3.2.0 with haml and sass: I Would like to link an external
I am using ActiveMerchant to give my rails app access to Paypal's Express Checkout.
I am building a rails app using the wonderful activemerchant gem to save credit
I have a file named purchase.rb that I am using to test Activemerchant with
I'm using Rails 3.1 and following this railscast to implement active merchant, I'm trying
Using ruby(1.8.7) , rails(2.3.8) , rspec(1.3.1) and rspec-rails(1.3.3) how do I test a method
I'm building a site on Rails using ActiveMerchant to clear payments through Authorize.net. We'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.