X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fpayment_gateway.html;fp=httemplate%2Fedit%2Fprocess%2Fpayment_gateway.html;h=b9e4d47da102d6a548b9ad28300834b6121d80c9;hb=452dc46f00628a3628f839b1af70e0f9295246e7;hp=0fc5b66c6112a091dfc289586cfbc9ea0926babf;hpb=b8ba3708111342732addb80c21e0f05838a53337;p=freeside.git diff --git a/httemplate/edit/process/payment_gateway.html b/httemplate/edit/process/payment_gateway.html index 0fc5b66c6..b9e4d47da 100644 --- a/httemplate/edit/process/payment_gateway.html +++ b/httemplate/edit/process/payment_gateway.html @@ -10,11 +10,16 @@ my $new = new FS::payment_gateway ( { } fields('payment_gateway') } ); +my @options = split(/\r?\n/, $cgi->param('gateway_options') ); +pop @options + if scalar(@options) % 2 && $options[-1] =~ /^\s*$/; +my %options = @options; + my $error; if ( $gatewaynum ) { $error=$new->replace($old); } else { - $error=$new->insert; + $error=$new->insert(\%options); $gatewaynum=$new->getfield('gatewaynum'); }