Skip to content

Getting started guide for Parafin Elements with flex loans

Notifications You must be signed in to change notification settings

buildparafin/embedded-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parafin Elements Quickstart

Parafin Widget is a React component available via the @parafin/react npm package that allows you to embed Parafin's capital experience directly within your app. Get up and running in minutes with this quickstart guide.

Parafin Widget preview

Prerequisites

Instructions

1. Clone repo

First, clone the quickstart repository and install dependencies:

$ git clone https://github.com/buildparafin/embedded-demo.git
$ cd embedded-demo
$ npm install

2. Fetch and include API keys

Next, Navigate to the Settings > API keys in your Parafin dashboard and fetch your sandbox Client ID and Client secret.

Rename the sample.env file to .env and populate with your Client ID and Client secret.

$ mv sample.env .env
# .env
PARAFIN_CLIENT_ID="<your-client-id>"
PARAFIN_CLIENT_SECRET="<your-client-secret>"

3. Create a pre-approved offer

There are a few requirements before you can display a pre-approved offer with @parafin/react:

See our documentation for more detailed information on how to create a pre-approved offer.

4. Run the app

You're now ready to run the app and check out your embedded offer!

In the project directory, run:

$ npm run dev

Open http://localhost:3000 to view the app with an embedded Parafin Widget in your browser.

About

Getting started guide for Parafin Elements with flex loans

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •