Feature Requests
Share ideas, discuss and vote on requests from other users in community

Make "Pay Now" without login button in invoices HTML instead of JS

Faizal Khan shared this idea 11 months ago
Under Consideration

Since email clients handle email security differently from web mail etc. we cannot expect each customer to enable macros/scripts in their email clients just so they can see the Pay Now button in the email which allows them to pay the invoice without logging in. Please make the Pay Now button an HTML button.

Comments (1)



Thanks for your suggestion. The payment buttons for credit-card gateways are currently just regular HTML forms, eg:

  1. <form method="post" action="https://test.com/whmcs/creditcard.php"; name="paymentfrm">
  2. <input type="hidden" name="token" value="abc" /><input type="hidden" name="invoiceid" value="4"><button type="submit" class="btn btn-success btn-sm" id="btnPayNow"><i class="fa fa-credit-card"></i> Pay Now</button></form>

For remote gateways such as PayPal, the button code can be more complex, but this is the button code as defined by the gateways themselves.