mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 15:16:38 +02:00
Adding payment-type prepaid and refactoring payment selection.
This commit is contained in:
parent
e7959e2da9
commit
b6100696a5
15 changed files with 154 additions and 152 deletions
|
@ -117,8 +117,15 @@ if(!$coo && !$q->param('merchant_id')){
|
|||
}else{
|
||||
my $return_merchant = { project_id => "" };
|
||||
($aowner, $return_merchant) = $apif->fetch_merchant($q,\%varenv,$coo,$q->param('merchant_id'));
|
||||
#if($aowner && ($aowner == 195 || $aowner == 185 || $aowner == 176)){
|
||||
if($return_merchant->{project_id} eq "Konstanz"){
|
||||
if($return_merchant->{project_id} eq "Freiburg"){
|
||||
$response->{agb_html} = "$dbt->{project_conf}->{Freiburg}->{agb_html}";
|
||||
$response->{tariff_info_html} = "$dbt->{project_conf}->{Freiburg}->{tariff_info_html}";
|
||||
$response->{bike_info_html} = "$dbt->{project_conf}->{Freiburg}->{bike_info_html}";
|
||||
if($lang ne "de"){
|
||||
$response->{tariff_info_html} =~ s/\.html/_en\.html/;
|
||||
}
|
||||
}
|
||||
elsif($return_merchant->{project_id} eq "Konstanz"){
|
||||
$response->{agb_html} = "$dbt->{project_conf}->{Konstanz}->{agb_html}";
|
||||
$response->{tariff_info_html} = "$dbt->{project_conf}->{Konstanz}->{tariff_info_html}";
|
||||
$response->{bike_info_html} = "$dbt->{project_conf}->{Konstanz}->{bike_info_html}";
|
||||
|
@ -127,7 +134,7 @@ if(!$coo && !$q->param('merchant_id')){
|
|||
$response->{bike_info_html} =~ s/\.html/_en\.html/;
|
||||
}
|
||||
}
|
||||
if($return_merchant->{project_id} eq "Bayern"){
|
||||
elsif($return_merchant->{project_id} eq "Bayern"){
|
||||
$response->{agb_html} = "$dbt->{project_conf}->{Bayern}->{agb_html}";
|
||||
$response->{privacy_html} = "$dbt->{project_conf}->{Bayern}->{privacy_html}";
|
||||
$response->{tariff_info_html} = "$dbt->{project_conf}->{Bayern}->{tariff_info_html}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue