Mike Dunham
and 1 contributors

NAME

Business::OnlinePayment::SynapseGateway - SynapseGateway backend for Business::OnlinePayment

SYNOPSIS

use Business::OnlinePayment;

  my $transaction = new Business::OnlinePayment($processor, %processor_info);
  $transaction->content(
                        login=>'Demo-Syn',
                        password=>'demo',
                        type=>'cc',
                        action=>'normal authorization',
                        amount=>'4.00',
                        description=>'perl test',
                        invoice_number=>'123456',
                        customer_id=>'123',
                        name=>'Mr Customer',
                        address=>'123 Main',
                        zip=>'55123',
                        card_number=>'4111111111111111',
                        expiration=>'1214',
                        cvv2=>'123',
                        order_number=>'',
                       );    
                                         
  $transaction->submit();
  
    if($transaction->is_success()) {
    print "Transaction processed successfully: ", $transaction->authorization(), "\n";
  } else {
    print "Transaction was rejected: ", $transaction->error_message(), "\n";
  }

DESCRIPTION

This module is a back end driver that implements the interface specified by Business::OnlinePayment to support payment handling via SynapseGateway payment solution.

SUPPORTED TRANSACTION ACTIONS

Type = 'CC'

Normal Authorization Authorization Only Post Authorization* Void* Credit

Content required: type, login, password, action, amount, name, card_number, expiration, *order_number.

DESCRIPTION

For detailed information see Business::OnlinePayment.

METHODS AND FUNCTIONS

See Business::OnlinePayment for the complete list. The following methods either override the methods in Business::OnlinePayment or provide additional functions.

NOTES

To settle an authorization-only transaction (where you set action to 'authorization only'), submit the twelve-digit transaction id code in the field "order_number" with the action set to "post authorization". You can get the transaction id from the authorization by calling the order_number method on the object returned from the authorization. You must also submit the amount field with a value less than or more than the amount specified in the original authorization. If the amount is the same, a "mark for settlement" will be sent to the gateway in place of a post authorization. "mark for settlement" automatically takes place on all post authorization with varying amounts.

SynapseGateway supports AVS and CVV Verification. If the user would like to use these features, the following information should be submitted with each transaction: Address, Zip, and CVV number. If these values are present the gateway will return responses for these verifications.

AUTHOR

Mike Dunham<lt>mdunham@synapsecorporation.com<gt>

SEE ALSO

perl(1). Business::OnlinePayment.