n8n/packages/nodes-base/credentials/PayPalApi.credentials.ts
2021-06-12 18:39:55 +02:00

42 lines
650 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: 'Sanbox',
value: 'sanbox',
},
{
name: 'Live',
value: 'live',
},
],
},
];
}