package Business::OnlinePayment::AuthorizeNet;
-# $Id: AuthorizeNet.pm,v 1.4 2002-02-12 23:29:43 ivan Exp $
+# $Id: AuthorizeNet.pm,v 1.5 2002-02-16 06:54:36 thalakan Exp $
use strict;
use Business::OnlinePayment;
fax => 'x_Fax',
email => 'x_Email',
company => 'x_Company',
+ order_number => 'x_Trans_ID',
);
if($self->transaction_type() eq "ECHECK") {
x_Last_Name x_First_Name x_Address
x_City x_State x_Zip x_Country x_Phone
x_Fax x_Email x_Email_Customer
- x_Company x_Country/);
+ x_Company x_Country x_Trans_ID/);
$post_data{'x_Test_Request'} = $self->test_transaction()?"TRUE":"FALSE";
$post_data{'x_ADC_Delim_Data'} = 'TRUE';
$post_data{'x_ADC_URL'} = 'FALSE';
$self->is_success(1);
$self->result_code($col[0]);
$self->authorization($col[4]);
+ $self->order_number($col[6]);
} else {
$self->is_success(0);
$self->result_code($col[2]);
state => 'UT',
zip => '84058',
card_number => '4007000000027',
- expiration => '09/99',
+ expiration => '09/02',
);
$tx->submit();
Business::OnlinePayment::AuthorizeNet, 3.0 requires separate first_name and
last_name fields.
+To settle an authorization-only transaction (where you set action to
+'Authorization Only'), submit the nine-digit transaction id code in
+the field "order_number" with the action set to "Post Authorization".
+You can get the transaction id from the authorization by calling the
+order_number method on the object returned from the authorization.
+You must also submit the amount field with a value less than or equal
+to the amount specified in the original authorization.
+
+Recently (February 2002), Authorize.Net has turned address
+verification on by default for all merchants. If you do not have
+valid address information for your customer (such as in an IVR
+application), you must disable address verification in the Merchant
+Menu page at https://secure.authorize.net/ so that the transactions
+aren't denied due to a lack of addres information.
+
=head1 COMPATIBILITY
-This module implements Authorize.Net's API verison 3.0.
+This module implements Authorize.Net's API verison 3.0 using the ADC
+Direct Response method. See
+https://secure.authorize.net/docs/developersguide.pml for details.
=head1 AUTHOR
Ivan Kohler <ivan-authorizenet@420.am> updated it for Authorize.Net protocol
3.0 and is the current maintainer.
+Jason Spence <jspence@lightconsulting.com> got settlements working and
+wrote some docs. OST <services@ostel.com> paid for it.
+
=head1 SEE ALSO
perl(1). L<Business::OnlinePayment>.