PayPal
For seamless integration with PayPal, following settings must be configured within the paymentGateways.paypal section of the configuration file.
Configuration parameters​
| Field | Description |
|---|---|
| clientId | PayPal Client ID |
| clientSecret | PayPal Client Secret |
| itemName | Item name displayed in the PayPal order |
| orderDescription | Order description displayed in the PayPal |
| enabled | Is integration enabled |
| sandbox | Is sandbox mode enabled |
| paymentAccountsId | JeraSoft Payment Account ID to use |
| amountOptions | List of allowed top up amounts |
| allowCustom | Are custom amounts allowed |
| currencyCode | Currency (code) to charge payments in |
| currenciesId | Respective Currency ID in JeraSoft Billing |
Sample config​
/opt/jerasoft/vcs-data/conf/cp-customer-params.json
{
"default": {
...
"paymentGateways": {
"paypal": {
"clientId": "your-client-id",
"clientSecret": "your-client-secret",
"itemName": "Balance Top-Up",
"orderDescription": "Balance Top-Up",
"enabled": true,
"sandbox": false,
"paymentAccountsId": 1,
"amountOptions": [
10, 20, 50, 100
],
"allowCustom": true,
"currencyCode": "USD",
"currenciesId": 26
}
},
...
}
}