Proposed fix for clikoptions in upgrade for windows
Modularize frontPayment() function in front_payment.php script to allow use with api.