Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Install Dependencies

$ npm install prompt, jsonfile

Running the Example

cd listeners

# terminal 1

# Create PayPal Entity.

# Follow prompts.
# prompt: Enter location to save entity credentials: .
# prompt: entity: PayPal
# prompt: Password: PayPal
node ../../install.js

# Create PayPalRedirect Entity.

# Follow prompts.
# prompt: Enter location to save entity credentials: .
# prompt: entity: PayPalRedirect
# prompt: Password: PayPalRedirect
node ../../install.js

# Start listening to seif connections
# Follow prompts and use PayPal as the entity.
# prompt: entity: PayPal
# prompt: Password: PayPal
node listener.js
# Terminal 2

cd listeners

# Start listening to seif connections
# Follow prompts and use PayPalRedirect as the entity.
# prompt: entity: PayPalRedirect
# prompt: Password: PayPalRedirect
node redirectListener.js
# Terminal 3

cd initiator

# Create user Entity.

# Follow prompts.
# prompt: Enter location to save entity credentials: .
# prompt: entity: user
# prompt: Password: user
node ../../install.js

# Follow prompts and use user as the entity.
# prompt: entity: user
# prompt: Password: user
node initiator.js