Subject: | Fix: Reference Transactions Broken |
Date: | Tue, 01 Sep 2009 17:59:04 -0600 |
To: | bug-Business-OnlinePayment-PayflowPro [...] rt.cpan.org |
From: | Josh Rosenbaum <josh [...] infogears.com> |
This fix allows Payflow Pro reference transactions to be used. Currently they are blocked, because the credit card number is being required even though we only need to specify the ORIGID (order_number).
(Note: To utilize reference transactions, you need them turned on in the Payflow Pro manager under Transactions Settings.)
Cheers,
-- Josh Rosenbaum
--- Business/OnlinePayment/PayflowPro.pm 2009-08-21 23:29:03.000000000 -0600
+++ PayflowPro.pm 2009-09-01 17:46:12.000000000 -0600
@@ -223,8 +223,7 @@
my @required = qw( TRXTYPE TENDER PARTNER VENDOR USER PWD );
if ( $self->transaction_type() eq 'C' ) { # credit card
- if ( $content{'action'} =~ /^[CDV]$/
- && defined( $content{'ORIGID'} )
+ if ( defined( $content{'ORIGID'} )
&& length( $content{'ORIGID'} ) )
{
push @required, qw(ORIGID);