@@ -15,7 +15,7 @@ There is currently no automatic process to configure a new webhook endpoint. Ple
15
15
16
16
## Webhook Signatures
17
17
18
- It's important to verify the webhooks you're receiving are actually from Lunar Client. All webhooks will be sent with a ` X-Signature ` header, whose
18
+ It's important to verify the webhooks you're receiving are actually from Lunar Client. All webhooks will be sent with an ` X-Signature ` header, whose
19
19
value should be checked prior to accepting the webhook.
20
20
21
21
This value is generated by computing a SHA256 HMAC hash of the body of the webhook. The secret to verify with will be provided to you as part
@@ -37,9 +37,9 @@ of the setup process.
37
37
38
38
## Webhook Types
39
39
40
- ` store.purchase.completed ` - A purchase has been completed, and a player has received your partnered product.
41
- ` store.purchase.refunded ` - A previously-completed purchase has been refunded by Lunar Client, and any partnered products have been removed.
42
- ` store.purchase.disputed ` - A previously-completed purchase has been disputed by the purchaser, and any partnered products have been removed.
40
+ * ` store.purchase.completed ` - A purchase has been completed, and a player has received your partnered product.
41
+ * ` store.purchase.refunded ` - A previously-completed purchase has been refunded by Lunar Client, and any partnered products have been removed.
42
+ * ` store.purchase.disputed ` - A previously-completed purchase has been disputed by the purchaser, and any partnered products have been removed.
43
43
44
44
## Webhook Format
45
45
@@ -53,17 +53,17 @@ of the setup process.
53
53
{
54
54
"id" : 5362597 , // Internal ID of the package purchased. This should be a stable identifier.
55
55
"name" : " Purple Prison (Hearts)" , // Name of the package purchased.
56
- "quantity" : 1 , // Quantity purchased
56
+ "quantity" : 1 // Quantity purchased
57
57
},
58
58
{
59
59
"id" : 5362600 ,
60
60
"name" : " Purple Prison Necklace" ,
61
- "quantity" : 1 ,
61
+ "quantity" : 1
62
62
}
63
63
],
64
64
"customer" : {
65
65
"username" : " macguy" , // Minecraft username
66
- "uuid" : " 7471b8e8-27c2-4354-a7d2-bd6a82dc00a0" , // Minecraft uuid, with dashes
66
+ "uuid" : " 7471b8e8-27c2-4354-a7d2-bd6a82dc00a0" // Minecraft uuid, with dashes
67
67
}
68
68
}
69
69
}
0 commit comments