diff --git a/README.md b/README.md
index 4965ec9..3a6f1e4 100644
--- a/README.md
+++ b/README.md
@@ -6,10 +6,16 @@ The TipJar extension allows you to integrate Bitcoin Lightning (and on-chain) ti
How to set it up
-1. Simply create a new Tip Jar with the desired details (onchain optional):
+1. Simply create a new Tip Jar with the desired details (onchain and webhook optional):
![image](https://user-images.githubusercontent.com/28876473/134996842-ec2f2783-2eef-4671-8eaf-023713865512.png)
1. Share the URL you get from this little button:
![image](https://user-images.githubusercontent.com/28876473/134996973-f8ed4632-ea2f-4b62-83f1-1e4c6b6c91fa.png)
+A note on webhooks
+
+The `description` field of the message POSTed to your webhook will be in the following format:
+ * `{length of the name}|{name}{message}`
+
+You can split along the first `|`. This will give you the index at which to split between the name of the tipper and the message of the tipper.
And that's it already! Let the sats flow!
diff --git a/views_api.py b/views_api.py
index 233eed9..302a265 100644
--- a/views_api.py
+++ b/views_api.py
@@ -62,12 +62,11 @@ async def api_create_tip(data: createTips):
name = data.name
- # Ensure that description string can be split reliably
- name = name.replace('"', "''")
if not name:
name = "Anonymous"
- description = f"{name}: {message}"
+ # Ensure that description string can be split reliably
+ description = f"{len(name)}|{name}{message}"
charge_id = await create_charge(
data={
"amount": sats,