Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 1.66 KB

README.md

File metadata and controls

83 lines (56 loc) · 1.66 KB

paypal-config

CircleCI

version: 0.0.1

PayPal configuration on Syncano

To install, run:

syncano-cli add paypal-config

Classes

paypal_config schema

Name Type Filtering Ordering
PAYPAL_CLIENT_ID string false false
PAYPAL_CLIENT_SECRET string false false
PAYPAL_MODE string false false

Endpoints

install

Install Paypal config.

Parameters

name type description
PAYPAL_CLIENT_ID string PayPal app Client ID
PAYPAL_CLIENT_SECRET string PayPal app secret
PAYPAL_MODE string Configuration mode, which is 'sandbox' for testing or 'live' for production

Response

mimetype: application/json

Successfully installed 200
{
  "message": "Installed successfully"
}
Unauthorize 403
{
  "message": "You are not authorised for this action"
}
Installation failure 400
{
  "message": "Error installing PayPal config"
}

Contributing

How to Contribute

  • Fork this repository
  • Clone from your fork
  • Make your contributions (Make sure your work is well tested)
  • Create Pull request from the fork to this repo

Setting up environment variables

  • Create a .env on parent folder
  • Copy contents of .env-sample file to newly created .env file and assign appropriate values to the listed variables.

Testing

  • Ensure all your test are written on the test directory
  • Use the command npm test to run test