https://github.com/syncano/syncano-socket-paypal-config
https://github.com/syncano/syncano-socket-paypal-config
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/syncano/syncano-socket-paypal-config
- Owner: Syncano
- Created: 2018-01-31T05:04:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T11:13:34.000Z (about 8 years ago)
- Last Synced: 2025-03-08T18:51:12.983Z (over 1 year ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# paypal-config
[](https://circleci.com/gh/Syncano/syncano-socket-paypal-config)
`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