Specifying the payment method type

Updated on 20-October-2016 at 10:16 AM

Business Catalyst End of life announcement - find out more details.

Payment method type

Sometimes you may need to add a payment method type to the checkout web form that is not there by default.

The following list itemizes the supported payment method types:

  • CreditCard (i.e. seamless payment gateway) = 1
  • Cheque = 2
  • Cash = 3
  • EFT = 4
  • PayPal = 5
  • BPay = 6
  • HostedCreditCard (i.e. non-seamless payment gateway) = 7
  • DirectDebit = 8
  • GiftVoucher = 9
  • Free = 10

For example, if you need a Direct Debit option in addition to COD, you will need to create a radio button with value 8 in the checkout form in Registration Template, use the following code: 

<input id="PaymentMethodType" type="radio" name="PaymentMethodType" value="8"/>Direct Debit

'No Cost' orders

If an order has no cost (i.e. a discount code or similar reduces the order amount to $0) you will need to use the 'Free' option above.

You can use the following javascript, that checks the amount and if it's $0 and then sets this payment type automatically.

To implement this:

  1. Add this to your checkout form via Admin->More Customization Optinos->Online Shop Layouts->Registration (Buy) Form)
  2. <input type="radio" name="PaymentMethodType" id="PaymentMethodType_10" value="10"" />
  3. You may want to add this javascript:
  4. <script type="text/javascript">
    if (document.getElementById("Amount").value == 0)
    document.getElementById("PaymentMethodType_10").checked = true;