Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Business::OnlinePayment::BankOfAmerica 1.02

    Download button

    No screenshots available
    Downloads: 239  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ivan Kohler | More programs
    Perl Artistic License / FREE
    November 26th, 2009, 18:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Business::OnlinePayment::BankOfAmerica description

    Bank of America backend for Business::OnlinePayment

    Business::OnlinePayment::BankOfAmerica is a Perl module that requires separate first_name and last_name fields.

    SYNOPSIS

     use Business::OnlinePayment;

     my $tx = new Business::OnlinePayment("BankOfAmerica", 'merchant_id' => 'YOURMERCHANTID');
     $tx->content(
     type => 'VISA',
     action => 'Authorization Only',
     description => 'Business::OnlinePayment test',
     amount => '49.95',
     invoice_number => '100100',
     customer_id => 'jsk',
     first_name => 'Jason',
     last_name => 'Kohles',
     address => '123 Anystreet',
     city => 'Anywhere',
     state => 'UT',
     zip => '84058',
     email => 'ivan-bofa@420.am',
     card_number => '4007000000027',
     expiration => '09/99',
     referer => 'http://cleanwhisker.420.am/',
     );
     $tx->submit();

     if($tx->is_success()) {
     print "Card processed successfully: ".$tx->authorization."
    ";
     } else {
     print "Card was rejected: ".$tx->error_message."
    ";
     }

     if($tx->is_success()) {

     $auth = $tx->authorization;
     $ordernum = $tx->order_number;

     my $capture = new Business::OnlinePayment("BankOfAmerica", 'merchant_id' => 'YOURMERCHANTID' );

     $capture->content(
     action => 'Post Authorization',
     login => 'YOURLOGIN
     password => 'YOURPASSWORD',
     order_number => $ordernum,
     amount => '0.01',
     authorization => $auth,
     description => 'Business::OnlinePayment::BankOfAmerica visa test',
     );

     $capture->submit();

     if($capture->is_success()) {
     print "Card captured successfully: ".$capture->authorization."
    ";
     } else {
     print "Card was rejected: ".$capture->error_message."
    ";
     }

     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Bank Of America | online payment | Perl module | bank | payment | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM