Catch braintree webhooks

This commit is contained in:
David Bomba 2022-01-09 17:01:41 +11:00
parent 25ebc9af83
commit 39a3e91620

View File

@ -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);