summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-12-28 14:18:29 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-12-28 14:18:29 -0600
commit691b4de7c0a7d0e39bebe2ea7fadea5fb21b1539 (patch)
treeec486c00517954c0d37ae1ece07d2de790b306df /httemplate/edit/process
parentf26f4658d8e2a48439ca4f912dbc887cd008ee5b (diff)
parentb6151684a227ad8018de4fdc661fcb61d00675a7 (diff)
71513: Card tokenization [project branch merge]
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/agent_payment_gateway.html13
1 files changed, 3 insertions, 10 deletions
diff --git a/httemplate/edit/process/agent_payment_gateway.html b/httemplate/edit/process/agent_payment_gateway.html
index 5b5fd948a..c9789cff6 100644
--- a/httemplate/edit/process/agent_payment_gateway.html
+++ b/httemplate/edit/process/agent_payment_gateway.html
@@ -10,20 +10,13 @@ die "agentnum $1 not found" unless $agent;
#my $old
-my @new = map {
- my $cardtype = $_;
- new FS::agent_payment_gateway {
+my $new = new FS::agent_payment_gateway {
( map { $_ => scalar($cgi->param($_)) }
fields('agent_payment_gateway')
),
- 'cardtype' => $cardtype,
};
- }
- $cgi->param('cardtype');
-foreach my $new (@new) {
- my $error = $new->insert;
- die $error if $error;
-}
+my $error = $new->insert;
+die $error if $error;
</%init>