Business::OnlinePayment::eSec - eSec backend for Business::OnlinePayment
use Business::OnlinePayment;
my $tx = new Business::OnlinePayment("eSec");
$tx->content(
type => 'CC',
login => 'test', #EPS_MERCHANT
action => 'Authorization Only',
description => 'Business::OnlinePayment test',
amount => '49.95',
invoice_number => '100100',
name => 'Tofu Beast',
card_number => '4007000000027',
expiration => '09/02',
);
$tx->submit();
if($tx->is_success()) {
print "Card processed successfully: ".$tx->authorization."\n";
} else {
print "Card was rejected: ".$tx->error_message."\n";
}
For detailed information see Business::OnlinePayment.
This module implements eSec's API verison 2. See
http://www.esec.com.au/sep/content/eps_support/integrate/integrate_use.html
for details.
Ivan Kohler <ivan-esec@420.am>
perl(1). Business::OnlinePayment.