Skip to content

Commit

Permalink
[Bexley][WW] Make sure we use internal DD setup for renewals
Browse files Browse the repository at this point in the history
  • Loading branch information
nephila-nacrea authored and davea committed Mar 4, 2025
1 parent 691575b commit 16b5b98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion perllib/FixMyStreet/App/Controller/Waste.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,12 @@ sub process_garden_renew : Private {
$c->forward('confirm_subscription', [ undef ] );
} else {
if ( $payment_method eq 'direct_debit' ) {
$c->forward('direct_debit');
if ($c->cobrand->direct_debit_collection_method eq 'internal') {
$c->stash->{form_data} = $data;
$c->forward('direct_debit_internal');

Check warning on line 1573 in perllib/FixMyStreet/App/Controller/Waste.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/App/Controller/Waste.pm#L1572-L1573

Added lines #L1572 - L1573 were not covered by tests
} else {
$c->forward('direct_debit');
}
} elsif ( $c->stash->{staff_payments_allowed} eq 'paye' ) {
$c->forward('csc_code');
} else {
Expand Down

0 comments on commit 16b5b98

Please sign in to comment.