We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2486865 commit ade92deCopy full SHA for ade92de
app.json
@@ -23,6 +23,10 @@
23
"BT_PRIVATE_KEY": {
24
"description": "Your Braintree Private Key",
25
"required": true
26
+ },
27
+ "EMAIL": {
28
+ "description": "Email where to send the webhook message",
29
+ "required": true
30
}
31
32
public_html/webhook.php
@@ -16,6 +16,7 @@
16
$message .= $webhookNotification->timestamp->format('D M j G:i:s T Y'); // "Sun Jan 1 00:00:00 UTC 2012"
17
18
error_log($message);
19
+ mail(getenv('EMAIL'), $message, json_encode($webhookNotification));
20
21
header("HTTP/1.1 200 OK");
22
0 commit comments