summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-08-08 22:09:28 +0000
committerivan <ivan>2011-08-08 22:09:28 +0000
commitca1ce2bf1c68535a6c4a0b0299bf64a07e530424 (patch)
tree2e2536e79b7082be1c44498c87bd8a1ad5571a78 /FS/FS
parenta3666370003ad35641b8b607b99720762147ab16 (diff)
add business-onlinepayment-currency config setting, RT#13904
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/Conf.pm8
-rw-r--r--FS/FS/cust_main/Billing_Realtime.pm4
2 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index b3fdfdcf4..e1e72e1e2 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -820,6 +820,14 @@ my %payment_gateway_options = (
},
{
+ 'key' => 'business-onlinepayment-currency',
+ 'section' => 'billing',
+ 'description' => 'Currency parameter for Business::OnlinePayment transactions.',
+ 'type' => 'select',
+ 'select_enum' => [ '', qw( USD AUD CAD DKK EUR GBP ILS JPY NZD ) ],
+ },
+
+ {
'key' => 'countrydefault',
'section' => 'UI',
'description' => 'Default two-letter country code (if not supplied, the default is `US\')',
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index 91f22ee02..da6b31b81 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -306,6 +306,10 @@ sub _bop_content {
$content{referer} = 'http://cleanwhisker.420.am/'; #XXX fix referer :/
$content{phone} = $self->daytime || $self->night;
+ my $currency = $conf->exists('business-onlinepayment-currency')
+ && $conf->config('business-onlinepayment-currency');
+ $content{currency} = $currency if $currency;
+
\%content;
}