Revision history for Perl extension Business::OnlinePayment::TransactionCentral.
+0.02 unreleased
+ - updated example in manpage s/Capstone/TransactionCentral/
+ - add debugging methods response_page, response_code, response_headers
+
0.01 Wed Nov 23 05:14:43 2005
- original version; created by h2xs 1.23 with options
-X -b 5.5.0 -n Business::OnlinePayment::TransactionCentral -v 0.01
All rights reserved. This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
-This is Business::OnlinePayment::TransactionCentral, an Business::OnlinePayment
+This is Business::OnlinePayment::TransactionCentral, a Business::OnlinePayment
backend module for the MerchantAnywhere Transaction Central gateway. It is
only useful if you have a merchant account with MerchantAnywhere:
http://www.merchantanywhere.com/
use vars qw($VERSION @ISA $DEBUG);
@ISA = qw(Business::OnlinePayment::HTTPS);
-$VERSION = '0.01';
+$VERSION = '0.02';
$DEBUG = 0;
sub set_defaults {
$self->port('443');
$self->path('/billing/TransactionCentral/');
- $self->build_subs(qw( order_number avs_code cvv2_response ));
+ $self->build_subs(qw( order_number avs_code cvv2_response
+ response_page response_code response_headers
+ ));
}
sub submit {
DESCRIPTION DESCDATE TRANSTYPE TRANSROUTE
);
- #my( $page, $response, %reply_headers ) =
- my( $page, $response ) =
+ my( $page, $response, %reply_headers ) =
$self->https_post( $self->get_fields( @fields ) );
+ $self->response_code( $response );
+ $self->response_page( $page );
+ $self->response_headers( \%reply_headers );
+
warn "\n" if $DEBUG > 1;
if ( $DEBUG > 2 ) {
warn "response: $response\n";
# One step transaction, the simple case.
####
- my $tx = new Business::OnlinePayment("Capstone");
+ my $tx = new Business::OnlinePayment("TransactionCentral");
$tx->content(
type => 'CC',
login => '10011', #MerchantID