GithubHelp home page GithubHelp logo

xenoterracide / business-onlinepayment-paperlesstrans Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 588 KB

Business::OnlinePayment and additional Remote Facade for the Paperless Transaction Corporation BackOffice API

License: Other

Perl 100.00%

business-onlinepayment-paperlesstrans's Introduction

NAME
    Business::OnlinePayment::PaperlessTrans - Interface to Paperless
    Transaction Corporation BackOffice API

VERSION
    version 0.001006

SYNOPSIS
            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 <http://support.paperlesstrans.com/api-overview.php>
    Business::OnlinePayment
    Business::PaperlessTrans

AUTHOR
    Caleb Cushing <[email protected]>

COPYRIGHT AND LICENSE
    This software is Copyright (c) 2013 by Caleb Cushing.

    This is free software, licensed under:

      The Artistic License 2.0 (GPL Compatible)

business-onlinepayment-paperlesstrans's People

Contributors

xenoterracide avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.