+unless ( $access_pkgnum ) {
+ push @menu,
+ { title=>'Purchase additional package',
+ url=>'customer_order_pkg', 'indent'=>2 };
+}
+
+my %payby_mode;
+@payby_mode{@cust_paybys} = @hide_payment_fields;
+# $payby_mode{FOO} is true if FOO is thirdparty, false if it's B::OP,
+# nonexistent if it's not supported
+
+if ( $enable_payment_without_balance || (($balance || 0) > 0) ) { #eventually per-pkg or something really fancy
+
+ if ( exists( $payby_mode{CARD} ) ) {
+ push @menu, { title => 'Recharge my account with a credit card',
+ url => $payby_mode{CARD}
+ ? 'make_thirdparty_payment&payby_method=CC'
+ : 'make_payment',
+ indent => 2,
+ }
+ }
+
+ if ( exists( $payby_mode{CHEK} ) ) {
+ push @menu, { title => 'Recharge my account with a check',
+ url => $payby_mode{CHEK}
+ ? 'make_thirdparty_payment&payby_method=ECHECK'
+ : 'make_ach_payment',
+ indent => 2,
+ }
+ }