mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Catch braintree webhooks
This commit is contained in:
parent
25ebc9af83
commit
39a3e91620
@ -265,9 +265,14 @@ class BraintreePaymentDriver extends BaseDriver
|
|||||||
$request->input("bt_signature"), $request->input("bt_payload")
|
$request->input("bt_signature"), $request->input("bt_payload")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Example values for webhook notification properties
|
nlog("braintree webhook");
|
||||||
$message = $webhookNotification->kind; // "subscription_went_past_due"
|
|
||||||
$message = $webhookNotification->timestamp->format('D M j G:i:s T Y'); // "Sun Jan 1 00:00:00 UTC 2012"
|
if($webhookNotification)
|
||||||
|
nlog($webhookNotification->kind);
|
||||||
|
|
||||||
|
// // Example values for webhook notification properties
|
||||||
|
// $message = $webhookNotification->kind; // "subscription_went_past_due"
|
||||||
|
// $message = $webhookNotification->timestamp->format('D M j G:i:s T Y'); // "Sun Jan 1 00:00:00 UTC 2012"
|
||||||
|
|
||||||
return response()->json([], 200);
|
return response()->json([], 200);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user