X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=AuthorizeNet.pm;h=b00547d7b9ccc5e8299ea0899098750ed5f4d3a0;hb=8946b6f68bce2003d760233a3ed0721287dfcb86;hp=3ff2a46c22980f7d36bcebd82f542150a79a67fc;hpb=f1a63cdaaf5cc29fd26d2c0a8fec39e01c2f5e3f;p=Business-OnlinePayment-AuthorizeNet.git diff --git a/AuthorizeNet.pm b/AuthorizeNet.pm index 3ff2a46..b00547d 100644 --- a/AuthorizeNet.pm +++ b/AuthorizeNet.pm @@ -6,7 +6,7 @@ use Business::OnlinePayment; use vars qw($VERSION @ISA $me); @ISA = qw(Business::OnlinePayment); -$VERSION = '3.21_01'; +$VERSION = '3.22'; $me = 'Business::OnlinePayment::AuthorizeNet'; sub set_defaults { @@ -132,7 +132,7 @@ Business::OnlinePayment::AuthorizeNet - AuthorizeNet backend for Business::Onlin type => 'CC', action => 'Post Authorization', login => 'YOURLOGIN - password => 'YOURPASSWORD', + password => 'YOURPASSWORD', #or transaction key order_number => $ordernum, amount => '49.95', ); @@ -157,7 +157,7 @@ Business::OnlinePayment::AuthorizeNet - AuthorizeNet backend for Business::Onlin $tx->content( type => 'CC', login => 'testdrive', - password => 'testpass', + password => 'testpass', #or transaction key action => 'Recurring Authorization', interval => '7 days', start => '2008-3-10', @@ -195,7 +195,7 @@ Business::OnlinePayment::AuthorizeNet - AuthorizeNet backend for Business::Onlin type => 'CC', subscription => '99W2C', login => 'testdrive', - password => 'testpass', + password => 'testpass', #or transaction key action => 'Modify Recurring Authorization', interval => '7 days', start => '2008-3-10', @@ -225,7 +225,7 @@ Business::OnlinePayment::AuthorizeNet - AuthorizeNet backend for Business::Onlin $tx->content( subscription => '99W2D', login => 'testdrive', - password => 'testpass', + password => 'testpass', # or transaction key action => 'Cancel Recurring Authorization', ); $tx->submit(); @@ -245,11 +245,11 @@ Business::OnlinePayment::AuthorizeNet - AuthorizeNet backend for Business::Onlin =head2 CC, Visa, MasterCard, American Express, Discover -Content required: type, login, password|transaction_key, action, amount, first_name, last_name, card_number, expiration. +Content required: type, login, password, action, amount, first_name, last_name, card_number, expiration. =head2 Check -Content required: type, login, password|transaction_key, action, amount, first_name, last_name, account_number, routing_code, bank_name (non-subscription), account_type (subscription), check_type (subscription). +Content required: type, login, password, action, amount, first_name, last_name, account_number, routing_code, bank_name (non-subscription), account_type (subscription), check_type (subscription). =head2 Subscriptions @@ -357,7 +357,9 @@ from content(%content): zip => 'ship_zip', country => 'ship_country', -=head1 NOTE +=head1 NOTES + +Use your transaction key in the password field. Unlike Business::OnlinePayment or pre-3.0 verisons of Business::OnlinePayment::AuthorizeNet, 3.1 requires separate first_name and @@ -365,11 +367,12 @@ last_name fields. Business::OnlinePayment::AuthorizeNet uses Authorize.Net's "Advanced Integration Method (AIM) (formerly known as ADC direct response)" and -"Automatic Recurring Billing (ARB)", sending a username and transaction_key -or password with every transaction. Therefore, Authorize.Net's -referrer "security" is not necessary. In your Authorize.Net interface at -https://secure.authorize.net/ make sure the list of allowable referers is -blank. Alternatively, set the B field in the transaction content. +"Automatic Recurring Billing (ARB)", sending a username and password (or +transaction key as password) with every transaction. Therefore, +Authorize.Net's referrer "security" is not necessary. In your Authorize.Net +interface at https://secure.authorize.net/ make sure the list of allowable +referers is blank. Alternatively, set the B field in the transaction +content. To settle an authorization-only transaction (where you set action to 'Authorization Only'), submit the nine-digit transaction id code in @@ -438,6 +441,11 @@ Paul Timmins added the check_number field. Nate Nuss implemented the ("Additional Shipping Information (Level 2 Data)" fields: tax, freight, duty, tax_exempt, po_number. +Michael Peters fixed a bug in email address handling. + +Thomas Sibley wrote B:OP:AuthorizeNet::AIM::ErrorCodes +which was borged and used to provide more descriptive error messages. + =head1 CONTRIBUTIONS AND REPOSITORY Please send patches as unified diffs (diff -u) to (in order of preference): @@ -469,6 +477,22 @@ Or on the web: http://freeside.biz/cgi-bin/viewvc.cgi/Business-OnlinePayment-AuthorizeNet/ +=head1 A WORD FROM OUR SPONSOR + +This module and the Business::OnlinePayment framework are maintained by by +Freeside Internet Services. If you need a complete, open-source web-based +application to manage your customers, billing and trouble ticketing, please +visit http://freeside.biz/ + +=head1 COPYRIGHT & LICENSE + +Copyright 2010 Freeside Internet Services, Inc. +Copyright 2008 Thomas Sibley +All rights reserved. + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + =head1 SEE ALSO perl(1). L.