NAME

Business::OnlinePayment::CardFortress - CardFortress backend for Business::OnlinePayment

SYNOPSIS

use Business::OnlinePayment;

my $tx = new Business::OnlinePayment(
  'CardFortress',
    'gateway'          => 'ProcessingGateway',
    'gateway_login'    => 'gwlogin',
    'gateway_password' => 'gwpass',
    #private_key not necessary
);

$tx->content(
    type           => 'VISA',
    login          => 'cardfortress_login',
    password       => 'cardfortress_pass',
    action         => 'Normal Authorization',
    description    => 'Business::OnlinePayment test',
    amount         => '49.95',
    customer_id    => 'tfb',
    name           => 'Tofu Beast',
    address        => '123 Anystreet',
    city           => 'Anywhere',
    state          => 'UT',
    zip            => '84058',
    card_number    => '4007000000027',
    expiration     => '09/02',
    cvv2           => '1234', #optional (not stored)
);
$tx->submit();

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

# ... time slips by ...

my $rx = new Business::OnlinePayment(
  'CardFortress',
    'gateway'          => 'ProcessingGateway',
    'gateway_login'    => 'gwlogin',
    'gateway_password' => 'gwpass',
    'private_key'      => $private_key_string, #or filename
    'bop_options'      => join('/', map "$_=".$options{$_}, keys %options),
);

$rx->content(
    type           => 'VISA',
    login          => 'cardfortress_login',
    password       => 'cardfortress_pass',
    action         => 'Normal Authorization',
    description    => 'Business::OnlinePayment test',
    amount         => '49.95',
    card_token     => $card_token
    cvv2           => '1234', #optional, typically not necessary w/followup tx
);
$rx->submit();

DESCRIPTION

This is a Business::OnlinePayment backend module for the gateway-independent CardFortress storage service (http://cardfortress.com/).

SUPPORTED TRANSACTION TYPES

CC, Visa, MasterCard, American Express, Discover

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

METHODS AND FUNCTIONS

See Business::OnlinePayment for the complete list. The following methods either override the methods in Business::OnlinePayment or provide additional functions.

card_token

Returns the card token for any transaction. The card token can be used in a subsequent transaction as a replacement for the card number and expiration (as well as customer/AVS data).

result_code

Returns the response error code.

error_message

Returns the response error description text.

server_response

Returns the complete response from the server.

AUTHOR

Ivan Kohler <ivan-bop-cardfortress at freeside.biz>

COPYRIGHT & LICENSE

Copyright 2008-2016 Freeside Internet Services, Inc. (http://freeside.biz/) All rights reserved.

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