NAME

Business::OnlinePayment::TransactionCentral - Transaction Central backend module for Business::OnlinePayment

SYNOPSIS

use Business::OnlinePayment::TransactionCentral;
blah blah blah

DESCRIPTION

use Business::OnlinePayment;

####
# One step transaction, the simple case.
####

my $tx = new Business::OnlinePayment("Capstone");
$tx->content(
    type           => 'CC',
    login          => '10011', #MerchantID
    password       => 'KK48NPYEJHMAH6DK', #Regkey
    action         => 'Normal Authorization',
    description    => 'Business::OnlinePayment test',
    amount         => '49.95',
    name           => 'Tofu Beast',
    address        => '123 Anystreet',
    city           => 'Anywhere',
    state          => 'UT',
    zip            => '84058',
    phone          => '420-867-5309',
    email          => 'tofu.beast@example.com',
    card_number    => '4012000000001',
    expiration     => '08/06',
    cvv2           => '1234', #optional
);
$tx->submit();

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

SUPPORTED TRANSACTION TYPES

CC, Visa, MasterCard, American Express, Discover

Content required: type, login, password, action, amount, card_number, expiration.

PREREQUISITES

URI::Escape
#Tie::IxHash

Net::SSLeay _or_ ( Crypt::SSLeay and LWP )

DESCRIPTION

For detailed information see Business::OnlinePayment.

NOTE

AUTHOR

Ivan Kohler <ivan-transactioncentral@420.am>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Ivan Kohler

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

perl(1). Business::OnlinePayment.