n8n/packages/nodes-base/nodes/Stripe
Michael Kret b7aea957b8
feat: Do not show errors not processed by n8n (no-changelog) (#9598)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2024-06-20 08:45:00 +03:00
..
descriptions refactor: Enforce expanded sensitive inputs rules (no-changelog) (#6815) 2023-08-01 13:08:25 +02:00
helpers.ts refactor: Add IRequestOptions type to helpers.request for more type safety (no-changelog) (#8563) 2024-02-14 16:29:09 +01:00
README.md refactor: Validate formatting in nodes-base (no-changelog) (#4685) 2022-11-22 12:44:35 +01:00
Stripe.node.json fix(nodes-base): fix and harmonize all primaryDocumentation links (#4191) 2022-09-29 13:33:16 +03:00
Stripe.node.ts feat: Do not show errors not processed by n8n (no-changelog) (#9598) 2024-06-20 08:45:00 +03:00
stripe.svg refactor: Optimize SVG icons for nodes (#8195) 2024-01-02 17:40:08 +01:00
StripeTrigger.node.json fix(nodes-base): fix and harmonize all primaryDocumentation links (#4191) 2022-09-29 13:33:16 +03:00
StripeTrigger.node.ts feat(Stripe Trigger Node): Add action required trigger for payment intents (#6490) 2023-06-20 16:16:25 +01:00

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 <ul> that contains all event types
  2. copy-paste the function in the JS console
  3. the result is copied into in the clipboard
  4. paste the prepared array in StripeTrigger.node.ts
types = [];
$$('ul#event-types li').forEach((el) => {
	const value = el.querySelector('.method-list-item-label-name').innerText;

	types.push({
		name: value
			.replace(/(\.|_)/, ' ')
			.split(' ')
			.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
			.join(' '),
		value,
		description: el.querySelector('.method-list-item-description').innerText,
	});
});
copy(types);