Skip to content

Syncano/syncano-socket-paypal-config

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published