For the complete documentation index, see llms.txt. This page is also available as Markdown.

Experimental

Personal Loans Web Wrapper SDK Integration Guide (Experimental)

Overview

The Experimental approach delivers the Personal Loans marketplace flow as an embedded widget, sharing one implementation across multiple tech stacks. Pick your stack in the tabs below. Each tab covers installation, prerequisites, the core configuration props (channel, zone, productTypes), and a basic usage example.

You'll need the correct channel and zone values for your integration. Ask your Partner Manager to provide these values for Personal Loans.

Before you start, request an API token from your Partner Manager. It authenticates with the Engine API and is required to use the Prefill API. You may want multiple tokens depending on how many entry points your app has into the SDK.

Getting Started

Requirements

  • React Native

Install

Install the SDK from npm using your package manager:

  • npm install --save @moneylion/react-native-web-wrapper

  • yarn add @moneylion/react-native-web-wrapper

Initialize

Import the WebWrapper component into any file where you want to render the Engine flow:

import { WebWrapper, ApiModels } from '@moneylion/react-native-web-wrapper';

Basic Example

<WebWrapper
  channel="your-channel"
  zone="your-zone"
  productTypes={[ApiModels.ProductType.Loan]}
  onExit={() => {
    // handle exit / navigation
  }}
  // ...optional event handlers, see Event Handlers
/>

Properties

Prop
Type
Required
Description

channel

string

Yes

Identifies your integration in Engine. Provided by your Partner Manager (e.g. 'direct').

zone

string

Yes

Identifies the placement or distribution surface for the SDK. Provided by your Partner Manager (e.g. 'marketplace').

productTypes

ApiModels.ProductType[]

Yes

Product flow(s) to render. Use [ApiModels.ProductType.Loan] for Personal Loans.

bearerToken

string

For prefill

API token from your Partner Manager. Required to use the Prefill API. Without it, the standard non-prefilled flow renders.

isDev

boolean

No

When true, the SDK targets Engine's dev/staging hosts. Defaults to false (production).

style

ViewStyle

No

Style applied to the underlying view, e.g. {{ height: '100%' }}.

personalInformation, loanInformation, mortgageInformation, creditInformation, financialInformation, employmentInformation, legalInformation, educationInformation

Lead*Information

No

Prefill data. See Prefill Lead Data.

clientTags

Record<string, string[]>

No

Reporting/attribution tags. See Client Tags.

onExit

OnExitCallback

Yes

Fired when the user exits the flow.

onInitialize, onCreate, onUpdate, onNavigate, onSubmit, onRateTableRender, onOfferClick, onErrorPageView, onErrorPageRetry, onEmbedError, onEmbedErrorRetry

(props) => void

No

Optional tracking hooks. See Event Handlers.

User Experience Demo

The SDK renders a complete Personal Loans journey inside your app. It collects any missing user inputs, submits the lead, and then displays offers.

Typical flow:

  1. Landing screen

  2. Loan and personal details form

  3. Review / confirm details

  4. Offer results

Landing Screen
Loan Details
Personal Details
Personal Details
Personal Details
Personal Details

Last updated

Was this helpful?