| Issue 34: | authorize.net SIM patch | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Install patch. 2. Go to preferences, change your authorization type to 'authorize.net SIM' and 'store is in test mode' 3. go to authorize.net (login) and add http://hostname/authorize_net_sim/payment_received_notification_sub_step as an authorized "relay url" (account->settings->relay response) 3. Do a checkout with the off-site goodness. It also adds a preference to make a difference between "normal user/pass with a test flag" and "test account" for authorize.net users explicit. It requires a new gem ruby-hmac, to be installed, and a preference 'store_use_test_cc_submission_urls' to be added. It allows for authorize.net SIM to work, and has been reasonably, though not exhaustively tested (and works as expected). It also makes it more clear to the customer that they will be directed off site. It adds a helper function to the Preference model, as well. Note that the code could be refactored to "look" more like the paypal IPN implementation, but I preferred to keep it all in its own controller rather than add it to the order model (keep it separate). What version of the product are you using? 1.0a2 It might be possible to use the new preference to decide if users should use the paypal sandbox or not, but I haven't looked into it.
Mar 1, 2008
#1
rogerpack2005
Mar 14, 2008
V3--slightly cleaner look on authorize to install this I discovered I missed a step create the preference authorize_net_use_test_account_urls If anyone would like to use a developer account for this: 1st apply for and receive a test account. Then e-mail developer@authorize.net and request a login to test.authorize.net. Then you should be able to follow the steps above. GL. -Roger Note that the patch is slightly ugly in that it create store_helper.rb, but hey :)
Apr 10, 2008
i'm not clear what u said about "create the preference
authorize_net_use_test_account_urls"
how to create it?i wanna know it since i got NoMethodError in
Admin/preferences#index and its pointing to the:
<%= check_box_tag('prefs[authorize_net_use_test_account_urls]', 1, (@prefs
['authorize_net_use_test_account_urls'].is_true?)) %>
tq in advance
Apr 19, 2008
note that I also have a patch that allows paypal IPN to use a [patched] active merchant for its line items output--much nicer lookin. By 'create the preference' I'd do it by openign up console [script/console] running Preference.create :name => 'authorize_net_use_test_account_urls'
Aug 11, 2008
Closing this out, in anticipation of a patch for issue 76 which I believe is newer and dupes this code. Let me know if you have a patch that will apply cleanly to trunk and I can reopen.
Status:
Duplicate
Mar 14, 2009
Note that this patch needs to be modified to not include line items in the authorize.net SIM list if they have 0 price. Or figure out a way to make them work. I'll ping the active merchant guys one more time and if they still don't want my patch there then I'll just commit it all to substruct here. Thanks! -=r |