Pass bop_options to gateway
authorIvan Kohler <ivan@freeside.biz>
Mon, 16 Feb 2015 19:05:16 +0000 (11:05 -0800)
committerIvan Kohler <ivan@freeside.biz>
Mon, 16 Feb 2015 19:05:16 +0000 (11:05 -0800)
Changes
lib/Business/OnlinePayment/CardFortress.pm

diff --git a/Changes b/Changes
index 743a539..6298463 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,7 @@ Revision history for Business-OnlinePayment-CardFortress
 0.03    unreleased
         - Declare support for "Tokenize"-only action in introspection
         - Correct introspection: info_compat, not info_version
+        - Pass bop_options to gateway
 
 0.02    Mon Dec 13 22:49:44 PST 2010
         - Declare dependency on File::Slurp, closes: rt.cpan.org #63891
index 1a8af71..1d97d49 100644 (file)
@@ -54,6 +54,8 @@ sub submit {
   my %content = $self->content;
   $content{$_} = $self->$_() for qw( gateway gateway_login gateway_password );
 
+  $content{$_} = $self->$_() for grep $self->can($_), qw( bop_options );
+
   my ($page,$server_response,%headers) = $self->https_post(%content);
 
   die "$server_response\n" unless $server_response =~ /^200/;
@@ -161,6 +163,7 @@ Business::OnlinePayment::CardFortress - CardFortress backend for Business::Onlin
       'gateway_login'    => 'gwlogin',
       'gateway_password' => 'gwpass',
       'private_key'      => $private_key_string, #or filename
+      'bop_options'      => join('/', map "$_=".$options{$_}, keys %options),
   );
 
   $rx->content(