2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-11-22 09:38:08 -08:00
|
|
|
|
2019-11-23 16:36:47 -08:00
|
|
|
export class PayPalApi implements ICredentialType {
|
2019-12-01 07:15:02 -08:00
|
|
|
name = 'payPalApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2019-11-23 16:36:47 -08:00
|
|
|
displayName = 'PayPal API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'payPal';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-11-22 09:38:08 -08:00
|
|
|
{
|
|
|
|
displayName: 'Client ID',
|
|
|
|
name: 'clientId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-22 09:38:08 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Secret',
|
|
|
|
name: 'secret',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-22 09:38:08 -08:00
|
|
|
default: '',
|
|
|
|
},
|
2019-11-23 16:36:47 -08:00
|
|
|
{
|
2021-01-07 04:43:42 -08:00
|
|
|
displayName: 'Environment',
|
2019-11-23 16:36:47 -08:00
|
|
|
name: 'env',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'options',
|
2019-11-23 16:36:47 -08:00
|
|
|
default: 'live',
|
|
|
|
options: [
|
|
|
|
{
|
2022-04-08 02:49:07 -07:00
|
|
|
name: 'Sandbox',
|
2020-10-22 06:46:03 -07:00
|
|
|
value: 'sanbox',
|
2019-11-23 16:36:47 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Live',
|
2020-10-22 06:46:03 -07:00
|
|
|
value: 'live',
|
2019-11-23 16:36:47 -08:00
|
|
|
},
|
2020-10-22 06:46:03 -07:00
|
|
|
],
|
2019-11-23 16:36:47 -08:00
|
|
|
},
|
2019-11-22 09:38:08 -08:00
|
|
|
];
|
|
|
|
}
|