Business::OnlinePayment::CardFortress - CardFortress backend for Business::OnlinePayment
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();
This is a Business::OnlinePayment backend module for the gateway-independent CardFortress storage service (http://cardfortress.com/).
Content required: type, login, action, amount, card_number, expiration.
See Business::OnlinePayment for the complete list. The following methods either override the methods in Business::OnlinePayment or provide additional functions.
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).
Returns the response error code.
Returns the response error description text.
Returns the complete response from the server.
Ivan Kohler <ivan-bop-cardfortress at freeside.biz>
<ivan-bop-cardfortress at freeside.biz>
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.
To install Business::OnlinePayment::CardFortress, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::OnlinePayment::CardFortress
CPAN shell
perl -MCPAN -e shell install Business::OnlinePayment::CardFortress
For more information on module installation, please visit the detailed CPAN module installation guide.