PHP Class Laravel\Cashier\Http\Controllers\WebhookController

Inheritance: extends Illuminate\Routing\Controller
Show file Open project: laravel/cashier-braintree Class Usage Examples

Public Methods

Method Description
handleWebhook ( Illuminate\Http\Request $request ) : Response Handle a Braintree webhook call.
missingMethod ( array $parameters = [] ) : mixed Handle calls to missing methods on the controller.

Protected Methods

Method Description
cancelSubscription ( string $subscriptionId ) : Illuminate\Http\Response Handle a subscription cancellation notification from Braintree.
getSubscriptionById ( string $subscriptionId ) : mixed Get the user for the given subscription ID.
handleSubscriptionCanceled ( WebhookNotification $webhook ) : Illuminate\Http\Response Handle a subscription cancellation notification from Braintree.
handleSubscriptionExpired ( WebhookNotification $webhook ) : Illuminate\Http\Response Handle a subscription expiration notification from Braintree.
parseBraintreeNotification ( Illuminate\Http\Request $request ) : WebhookNotification Parse the given Braintree webhook notification request.

Method Details

cancelSubscription() protected method

Handle a subscription cancellation notification from Braintree.
protected cancelSubscription ( string $subscriptionId ) : Illuminate\Http\Response
$subscriptionId string
return Illuminate\Http\Response

getSubscriptionById() protected method

Get the user for the given subscription ID.
protected getSubscriptionById ( string $subscriptionId ) : mixed
$subscriptionId string
return mixed

handleSubscriptionCanceled() protected method

Handle a subscription cancellation notification from Braintree.
protected handleSubscriptionCanceled ( WebhookNotification $webhook ) : Illuminate\Http\Response
$webhook Braintree\WebhookNotification
return Illuminate\Http\Response

handleSubscriptionExpired() protected method

Handle a subscription expiration notification from Braintree.
protected handleSubscriptionExpired ( WebhookNotification $webhook ) : Illuminate\Http\Response
$webhook Braintree\WebhookNotification
return Illuminate\Http\Response

handleWebhook() public method

Handle a Braintree webhook call.
public handleWebhook ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
return Symfony\Component\HttpFoundation\Response

missingMethod() public method

Handle calls to missing methods on the controller.
public missingMethod ( array $parameters = [] ) : mixed
$parameters array
return mixed

parseBraintreeNotification() protected method

Parse the given Braintree webhook notification request.
protected parseBraintreeNotification ( Illuminate\Http\Request $request ) : WebhookNotification
$request Illuminate\Http\Request
return Braintree\WebhookNotification