The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Business::OnlinePayment::GlobalPayments - Global Transport backend for Business::OnlinePayment

SYNOPSIS

Initialization

  my $trans = new Business::OnlinePayment('GlobalPayments',
    domain => 'mymerchant' # Your account rep will supply this
  );

Sale transaction

  $trans->content(
    login           => 'login',
    password        => 'password',
    type            => 'CC',
    card_number     => '5500000000000004',
    expiration      => '0211',
    cvv2            => '255',
    invoice_number  => '123321',
    first_name      => 'Joe',
    last_name       => 'Schmoe',
    address         => '123 Anystreet',
    city            => 'Sacramento',
    state           => 'CA',
    zip             => '95824',
    action          => 'normal authorization',
    amount          => '24.99'
  );

Processing

  $trans->submit;
  if($trans->is_approved) {
    print "Approved\n",
          "Authorization: ", $trans->authorization, "\n",
          "Order ID: ", $trans->order_number, "\n"
  }
  else {
    print "Failed: ".$trans->error_message;
  }

Void transaction (or Return (credit) for full amount of original sale)

  $trans->content(
    login           => 'login',
    password        => 'password',
    action          => 'void', # or 'credit' for a Return
    order_number    => '1001245',
  );
  $trans->submit;

NOTES

The following transaction types are supported: Normal Authorization Authorization Only Post Authorization Credit Void

For Post Authorization, Credit, and Void, order_number should be set to the order_number of the previous transaction.

Alternately, Post Authorization can be sent with authorization set to an auth code obtained by telephone. Similarly, Credit can be sent with credit account information instead of an order_number.

By default, Global Transport will reject duplicate transactions (identical card number, expiration date, and amount) sent on the same day. This can be overridden by setting force_duplicate => 1.

AUTHOR

Mark Wells <mark@freeside.biz>

SUPPORT

Support for commercial users is available from Freeside Internet Services, Inc. <http://www.freeside.biz>

COPYRIGHT & LICENSE

Copyright 2009 Mark Wells, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.