mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
feat(Stripe Trigger Node): Add Stripe webhook descriptions based on the workflow ID and name (#9956)
This commit is contained in:
parent
0a84e0d8b0
commit
34334651e0
|
@ -865,12 +865,15 @@ export class StripeTrigger implements INodeType {
|
|||
async create(this: IHookFunctions): Promise<boolean> {
|
||||
const webhookUrl = this.getNodeWebhookUrl('default');
|
||||
|
||||
const webhookDescription = `Created by n8n for workflow ID: ${this.getWorkflow().id}`;
|
||||
|
||||
const events = this.getNodeParameter('events', []);
|
||||
|
||||
const endpoint = '/webhook_endpoints';
|
||||
|
||||
const body = {
|
||||
url: webhookUrl,
|
||||
description: webhookDescription,
|
||||
enabled_events: events,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue