saberworks has asked for the wisdom of the Perl Monks concerning the following question:
x_, but nowhere in OnlinePayment.pm or Authorizenet.pm can I find anything like that. Perhaps I am brain-dead, but here is my code anyway:
My account is in test mode, which is supposed to return a success for any credit card number.use Business::OnlinePayment; my $tx = new Business::OnlinePayment("AuthorizeNet"); $tx->content( type => 'VISA', login => $login, transaction_key => 'omitted', password => 'omitted', action => 'Normal Authorization', description => 'Purchase', amount => $amount, customer_id => $customer_id, first_name => $billto_fname, last_name => $billto_lname, address => $billto_address, city => $billto_city, state => $billto_state, zip => $billto_zip, card_number => '4007000000027', expiration => $exp_date, cvv2 => $cv2, name => 'Test Name' ); $tx->submit(); if($tx->is_success()) { print "Card processed successfully: ".$tx->authorization()."\n"; } else { print STDERR "Card was rejected: ".$tx->error_message()."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Business::OnlinePayment::AuthorizeNet Problems
by cfreak (Chaplain) on Jul 08, 2004 at 14:28 UTC | |
by saberworks (Curate) on Jul 08, 2004 at 19:37 UTC | |
by cfreak (Chaplain) on Jul 08, 2004 at 20:15 UTC | |
by saberworks (Curate) on Jul 08, 2004 at 20:16 UTC |