Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xenoterracide/business-onlinepayment-paperlesstrans
Business::OnlinePayment and additional Remote Facade for the Paperless Transaction Corporation BackOffice API
https://github.com/xenoterracide/business-onlinepayment-paperlesstrans
Last synced: 25 days ago
JSON representation
Business::OnlinePayment and additional Remote Facade for the Paperless Transaction Corporation BackOffice API
- Host: GitHub
- URL: https://github.com/xenoterracide/business-onlinepayment-paperlesstrans
- Owner: xenoterracide
- License: other
- Created: 2013-05-18T01:07:09.000Z (over 11 years ago)
- Default Branch: build/master
- Last Pushed: 2013-06-07T23:01:27.000Z (over 11 years ago)
- Last Synced: 2023-08-20T22:12:19.810Z (over 1 year ago)
- Language: Perl
- Size: 574 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
NAME
Business::OnlinePayment::PaperlessTrans - Interface to Paperless
Transaction Corporation BackOffice APIVERSION
version 0.001006SYNOPSIS
use Try::Tiny;
use Business::OnlinePayment;my $tx = Business::OnlinePayment->new('PaperlessTrans');
$tx->test_transaction(1);
$tx->content(
login => 'TerminalID',
password => 'TerminalKey',
debug => '1', # 0, 1, 2
type => 'ECHECK',
action => 'Normal Authorization',
check_number => '132',
amount => 1.32,
currency => 'USD',
routing_code => 111111118,
account_name => 'Caleb Cushing',,
account_number => 12121214,
name => 'Caleb Cushing',
address => '400 E. Royal Lane #201',
city => 'Irving',
state => 'TX',
zip => '75039-2291',
country => 'US',
);try {
$tx->submit;
}
catch {
# log errors
};if ( $tx->is_success ) {
# do stuff with
$tx->order_number;
$tx->authorization;
}
else {
# log
$tx->error_message;
}# start all over again credit cards
$tx->content(
login => 'TerminalID',
password => 'TerminalKey',
debug => '1', # 0, 1, 2
type => 'CC',
action => 'Authorization Only',
amount => 1.00,
currency => 'USD',
name => 'Caleb Cushing',
card_number => '5454545454545454',
expiration => '1215',
cvv2 => '111',
);## ...
SEE ALSO
BackOffice API
Business::OnlinePayment
Business::PaperlessTransAUTHOR
Caleb CushingCOPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by Caleb Cushing.This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)