Skip to content

Latest commit

 

History

History

simple-onboarding-form

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

⚠️ This repository contains a standalone example to be used as a reference to help our partners integrate with Tilled. It is not intended to be implemented in a production environment nor is it intended to be installed as a dependency in any way.

Dependencies

Get started

  • Clone the project
  • Install dependencies:
    $ npm install
    

Create a sandbox account and add your configuration values

  • Create a .env file in this project's root directory (simple-onboarding-form) with your partner account_id and your secret API key:
PARTNER_ACCOUNT_ID=acct_XXXX
TILLED_SECRET_KEY=sk_XXXX

Note: If you have not created a sandbox account or API keys, please review our Initial Setup page.

  • Run the sample server (from the project root):

    $ node app.js
    

    or, to enable live reload:

    $ npm run live
    

Create a connected account

  • Navigate to http://localhost:7070 in your browser, fill out the name and email fields.
  • Optional: Select a # template (defaults to all available # templates).
  • Go here to see your new account.

Update and submit a merchant application

  • Fill out the fields in the onboarding form and submit.
  • If your application contains errors, check the console for a complete list of errors and make the appropriate changes before resubmission.
  • View the newly created account details in the console.
  • Go here to see your applications status.

Customize which # templates your merchants see

  • Edit the logic in the /product-codes in app.js to control which # templates to display in the create account form.