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 7525363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:31:25+00:00 2026-05-30T03:31:25+00:00

I am using Authorize.net with Rails on Heroku. I have created a form to

  • 0

I am using Authorize.net with Rails on Heroku. I have created a form to submit the request to Authorize.net using the online examples such as:

https://developer.authorize.net/integration/fifteenminutes/ruby

I have created an account on Authorize.net, and built a form that submits to authorize.net like so (in haml):

%h3 Enter your credit card details
= form_for :sim_transaction, :url => @gateway_url do |f|
  = sim_fields(@sim_transaction)
  = order_details(@order)
  .fields
    .field
      = label_tag 'x_card_num', 'Credit Card Number'
      = text_field_tag 'x_card_num', params[:x_card_num], :style => 'width:200px'
    .field
      = label_tag 'x_exp_date', 'Expiration Date (MMYY)'
      = text_field_tag 'x_exp_date', params[:x_exp_date], :style => 'width:40px'
    .action
      = f.submit 'Confirm order'

The order_details is a helper method that creates hidden fields for first name, last name, etc. From the purchase order.

When submitted, the order processed by authorize.net and the users credit card is charged, but the POST to the relay response indicates the sim_response failed and was not processed.

if **sim_response.success?**(AUTHORIZE_NET_CONFIG['api_login_id'], AUTHORIZE_NET_CONFIG['merchant_hash_value'])
  render :text => sim_response.direct_post_reply(payments_receipt_url(:only_path => false), :include => true)
else
  render
end

The sim_response.success? call is false. Or, more specifically, there are two tests in the success method and this part of the success? method is false:

sim_response.valid_md5?(AUTHORIZE_NET_CONFIG['api_login_id'], AUTHORIZE_NET_CONFIG['merchant_hash_value'])

The result code I get back is “1” – which means the transaction was processed. That’s the text I see as well.

From my research, the valid_md5 method only happens when there is an incorrect api_login_id, but I don’t think that’s the case. Would the transaction succeed if the login_id was incorrect? Any other suggestions for tracking this down?

  • 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-30T03:31:27+00:00Added an answer on May 30, 2026 at 3:31 am

    This was a dumb mistake on my end, but it was easy to make. So, I’m posting it here.

    I had an MD5_hash value in the config – the same value as the api_key, as that’s what the generator from Authorize.net’s gem created for the test account. It turns out, that was wrong for production. I hadn’t set up an MD5_hash value, so I did on Authorize.net under account settings and added that to authorize_net.yml config. It now works and redirects correctly as it should.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a test account with Authorize.net and am using ActiveMerchant to process
I'm building a site on Rails using ActiveMerchant to clear payments through Authorize.net. We'd
I have a (hopefully) basic question on credit card processing, particularly using Authorize.Net. This
Background I have been using the Authorize.net SDK in an Eclipse project of it's
I have currently processed a credit card using Authorize.net with Card Present settings. The
I have a small problem with Authorize.NET SDK (CIM). Currently i'm using PHP SDK
i am using authorize.net {aim} for payment gate way. I have used http://www.johnconde.net/blog/tutorial-integrating-the-authorizenet-aim-api-with-php/ class
I have been trying to implement the Authorize.NEt SIM Method using the information given
I'm looking to do Authorize.net payment integration with a website using PHP. My questions
I have an MVC site, secured using [Authorize] attributes, but have an issue on

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.