Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Business::PayPal::API::DirectPayments 0.52

    Download button

    No screenshots available
    Downloads: 327  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Daniel Hembree | More programs
    Perl Artistic License / FREE
    October 2nd, 2007, 10:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Business::PayPal::API::DirectPayments description

    Business::PayPal::API::DirectPayments is an API for PayPal DirectPayments.

    Business::PayPal::API::DirectPayments is an API for PayPal DirectPayments.

    SYNOPSIS

    use Business::PayPal::API qw(DirectPayments);

    ## see Business::PayPal::API documentation for parameters
    my $pp = new Business::PayPal::API( Username => 'name_api1.example.org', Password => 'somepass', CertFile => '/path/to/tester1.cert_key_pem.txt', KeyFile => '/path/to/tester1.cert_key_pem.txt', sandbox => 1, );
    my %response = $pp->DoDirectPaymentRequest ( PaymentAction => 'Sale', OrderTotal => 13.59, TaxTotal => 0.0, ShippingTotal => 0.0, ItemTotal => 0.0, HandlingTotal => 0.0, CreditCardType => 'Visa', CreditCardNumber => '4561435600988217', ExpMonth => '01', ExpYear => '2007', CVV2 => '123', FirstName => 'James', LastName => 'PuffDaddy', Street1 => '1st Street LaCausa', Street2 => '', CityName => 'La', StateOrProvince => 'Ca', PostalCode => '90210', Country => 'US', Payer => 'Joe@Example.org', CurrencyID => 'USD', IPAddress => '10.0.0.1', MerchantSessionID => '10113301', );

    Business::PayPal::API::DirectPayments implements PayPal's DirectPayments API using SOAP::Lite to make direct API calls to PayPal's SOAP API server. It also implements support for testing via PayPal's sandbox. Please see Business::PayPal::API for details on using the PayPal sandbox.

    DoDirectPaymentRequest

    Implements PayPal's DoDirectPaymentRequest API call. Supported parameters include:

    PaymentAction ( Sale|Authorize, Sale is default )
    OrderTotal
    TaxTotal
    ShippingTotal
    ItemTotal
    HandlingTotal
    CreditCardType
    CreditCardNumber
    ExpMonth ( two digits, leading zero )
    ExpYear ( four digits, 20XX )
    CVV2
    FirstName
    LastName
    Street1
    Street2
    CityName
    StateOrProvince
    PostalCode
    Country
    Payer
    CurrencyID (USD is default)
    IPAddress
    MerchantSessionID

    as described in the PayPal "Web Services API Reference" document.

    Returns a hash containing the results of the transaction. The Ack element and TransactionID are the most useful return values.

    Example:

    my %resp = $pp->DoDirectPaymentRequest(
    PaymentAction => 'Sale',
    OrderTotal => '10.99',
    ...
    );

    unless( $resp{Ack} ne 'Success' ) {
    for my $error ( @{$response{Errors}} ) {
    warn "Error: " . $error->{LongMessage} . "n";
    }
    }

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    PayPal DirectPayments | PayPal API | Perl module | PayPal | DirectPayments | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM