diff --git a/packages/nodes-base/credentials/StripeApi.credentials.ts b/packages/nodes-base/credentials/StripeApi.credentials.ts new file mode 100644 index 000000000..d59ecbfb7 --- /dev/null +++ b/packages/nodes-base/credentials/StripeApi.credentials.ts @@ -0,0 +1,21 @@ +import { + ICredentialType, + NodePropertyTypes, +} from 'n8n-workflow'; + + +export class StripeApi implements ICredentialType { + name = 'stripeApi'; + displayName = 'Stripe Api'; + properties = [ + // The credentials to get from user and save encrypted. + // Properties can be defined exactly in the same way + // as node properties. + { + displayName: 'Secret Key', + name: 'secretKey', + type: 'string' as NodePropertyTypes, + default: '', + }, + ]; +} diff --git a/packages/nodes-base/nodes/Stripe/README.md b/packages/nodes-base/nodes/Stripe/README.md new file mode 100644 index 000000000..775af0648 --- /dev/null +++ b/packages/nodes-base/nodes/Stripe/README.md @@ -0,0 +1,27 @@ +All Stripe webhook events are taken from docs: +https://stripe.com/docs/api/events/types#event_types + +To get the entire list of events as a JS array, scrape the website: + +1. manually add the id #event-types to `