n8n/packages/nodes-base/credentials/PayPalApi.credentials.ts
Jonathan Bennetts c7a037e9fe
feat(PayPal Node): Add auth test, fix typo and update API URL (#3084)
* Implements PayPal Auth API Test

* Deletes unit tests

* 🚨 Fixed lint issues

* Added changes from PR#2568

* Moved methods to above execute

Co-authored-by: paolo-rechia <paolo@e-bot7.com>
2022-04-08 11:49:07 +02:00

42 lines
651 B
TypeScript

import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class PayPalApi implements ICredentialType {
name = 'payPalApi';
displayName = 'PayPal API';
documentationUrl = 'payPal';
properties: INodeProperties[] = [
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
},
{
displayName: 'Secret',
name: 'secret',
type: 'string',
default: '',
},
{
displayName: 'Environment',
name: 'env',
type: 'options',
default: 'live',
options: [
{
name: 'Sandbox',
value: 'sanbox',
},
{
name: 'Live',
value: 'live',
},
],
},
];
}