diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-18 05:14:22 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-29 05:06:53 -0600 |
commit | 6f2add8c2496952f0953ae066cfde3570610c98e (patch) | |
tree | 7d5c9e9d2935cbc5c76719ef6f57f62d7be92ebe /FS/FS/agent_payment_gateway.pm | |
parent | 868e9dd529dc43fd523a6883ee72ec9b22e11b90 (diff) |
71513: Card tokenization [token_check]
Diffstat (limited to 'FS/FS/agent_payment_gateway.pm')
-rw-r--r-- | FS/FS/agent_payment_gateway.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/FS/FS/agent_payment_gateway.pm b/FS/FS/agent_payment_gateway.pm index e71ed21..4991c19 100644 --- a/FS/FS/agent_payment_gateway.pm +++ b/FS/FS/agent_payment_gateway.pm @@ -111,6 +111,21 @@ sub check { $self->SUPER::check; } +sub _upgrade_data { + # to simplify tokenization upgrades + die "Agent taxclass override no longer supported" + if qsearch({ + 'table' => 'agent_payment_gateway', + 'extra_sql' => ' WHERE taxclass IS NOT NULL AND taxclass != \'\'', + }); + die "Agent cardtype override no longer supported" + if qsearch({ + 'table' => 'agent_payment_gateway', + 'extra_sql' => ' WHERE cardtype IS NOT NULL AND cardtype != \'\'', + }); + return ''; +} + =item payment_gateway =back |