fixing reference to javascript payment_types variable