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

Credit Cards

Credit Cards Mobile SDK Integration Guide (Web Wrapper)

Overview

The Credit Cards vertical is delivered through Engine's Web Wrapper SDK, available 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 Credit Cards.

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.CreditCard]}
  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.CreditCard] for Credit Cards.

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, financialInformation, creditInformation, creditCardInformation

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 Credit Cards journey inside your app. It collects any missing user inputs, submits the lead, and then displays offers.

Typical flow:

  1. Landing screen

  2. Personal details form

  3. Offer results

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

Last updated

Was this helpful?