make sure renewal is set before sending out notify

This commit is contained in:
mischa 2024-05-12 20:06:58 +02:00
parent 1444d5cc01
commit a6756de013
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,11 @@ sub mailout {
$paypal_url = "SPONSORED";
}
if ($_donated !~ m/renewal/) {
print "renewal not set\n";
next;
}
my $stripe = $stripe_urls{$_payment} || '';
my $ideal = $ideal_url || "https://bunq.me/openbsdams/${_payment}/${_instance}%20$conf{'conf'}{'SERVER'}";
my $paypal = $paypal_url || "https://paypal.me/runbsd/${_payment}eur";