Hi apologies… please assist if you can
I’m using a webhook in n8n to process form submissions. The form includes a list of children in the children array, each with a parent_email.
I’m trying to extract the parent’s email and pass it into Stripe’s customer_email field. However, I’m running into issues where Stripe rejects the email as invalid — even though it looks fine.
Error message
=======≈====
Stripe returns the following:
Invalid email address: [email protected]\n\n
(There are hidden line breaks at the end of the email)
workflow:
Here’s the key part of the flow:
Webhook node receives JSON with children[0].parent_email
Set node extracts and cleans the email using:
{{ String($json.body.children[0].parent_email).replace(/\s+/g, ‘’).trim() }}
Stripe Checkout Session is created with:
“customer_email”: “{{ $json.parent_email }}”
Share the output returned by the last node
400 Bad Request – Invalid email address: [email protected]\n\n
Information on n8n setup
n8n version: Latest cloud version
Database: SQLite (default)
n8n EXECUTIONS_PROCESS setting: own
Running n8n via: n8n cloud
Operating system: n8n cloud
Please help ![]()




