-
-
21 Dec 2016 00:08:00 UTC
- Distribution: Business-OnlinePayment-CardFortress
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (386 / 157 / 0)
- Kwalitee
Bus factor: 1- 36.45% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (7.25KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Ivan Kohler
- Dependencies
- Business::OnlinePayment
- Crypt::OpenSSL::RSA
- File::Slurp
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- SYNOPSIS
- DESCRIPTION
- SUPPORTED TRANSACTION TYPES
- METHODS AND FUNCTIONS
- AUTHOR
- COPYRIGHT & LICENSE
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.
Module Install Instructions
To install Business::OnlinePayment::CardFortress, copy and paste the appropriate command in to your terminal.
cpanm Business::OnlinePayment::CardFortress
perl -MCPAN -e shell install Business::OnlinePayment::CardFortress
For more information on module installation, please visit the detailed CPAN module installation guide.