1. Home
  2. Interswitch lending Service
  3. Hosted Fields
  4. Hosted Fields – Channels (Regular/VF loans)

Hosted Fields – Channels (Regular/VF loans)

This provides a way for the merchant ( channels: Regular or Value Financing ) to securely collect card details for customers paying with debit or credit card to complete the loan application on their channels. It enables the merchant to control the experience; look and feel (that is, the merchant is in complete control of their UI/UX).

The following fields are hosted securely in iframes which the merchant can embed in their checkout page;

  1. PAN
  2. Expiry Date
  3. PIN
  4. CVV
  5. OTP

Steps to Implement HostedField

Sample Code (Card form)

Load the SDK

Loading the SDK will make available global interswitch.hostedFields variable available.

Create Hosted Fields Instance

Create an instance of hosted Field by Calling the newInstance method on the interswitch.hostedFields variable , the method takes options and a callback.

The create instance can be used to register events listeners and finally submit the customer’s request when the customer clicks on a the submit button. On submit this instance will return to the callback.

The options include authorization, accept offer (whether value financing or regular loans) request, fields and styles as shown below.
Please note that the accept offer request body varies depending on the type of loans your customers apply for.
Value Financing: merchantCode is required alongside others.
Regular Loans: creditMethod (the customers account number and the bank code) is required alongside others.

NOTE: channleCode, customerId, offerId, providerCode and transactionRef are always required for any loan type.

Available Options

Submit Loan Application

When customer submits, a submit request is initiated on the hostedFieldInstance returned by the created hosted field instance

Hosted Fields Demo Interface

The loaded Hosted Fields Demo page

After entering card details, OTP validation is next

For Third-party channels, Accept Offer is triggered

Was this article helpful to you? Yes No

How can we help?