Hello,
I am trying to bypass the payment selection page to directly show the order form and this is code that i am using:
jQuery(document).ready(function(){
Infusion.Ecomm.OrderForms.selectPaymentType(‘creditcard’);
Infusion.Ecomm.OrderForms.ajaxSubmitForm(‘orderForm’, false, 0, ‘’, ‘jQuery(“#identifier”).val()’, ‘RENDER_ORDER_FORM’, [‘ORDER_FORM_BILLING_ENTRY’, ‘PAYMENT_SELECTION’, ‘ORDER_FORM_SHIPPING_ENTRY’, ‘SHIPPING_OPTIONS’, ‘CHECKOUT_LINKS’]);
});
On loading the URL for the first time the code did not work and showing me the error:
Infusion.Ecomm.OrderForms.selectPaymentType is not a function.
But when I reload the page again the code works and shows me the order form directly.
Can anyone help me with that ?