WC_Stripe_Controller_Webhook
extends WC_Stripe_Rest_Controller
in package
Tags
Table of Contents
Properties
- $error : WP_Error
- $namespace : mixed
- $secret : mixed
Methods
- admin_permission_check() : mixed
- handle_get_request() : void
- register_routes() : mixed
- Register all routes that the controller uses.
- rest_uri() : mixed
- rest_url() : mixed
- webhook() : mixed
- add_validation_error() : mixed
- Allows a status code of 200 to be returned even if there is a validation error.
- get_error_messages() : mixed
- get_messages() : mixed
- register_authenticated_route() : mixed
- send_error_response() : mixed
Properties
$error
protected
WP_Error
$error
= \null
$namespace
protected
mixed
$namespace
= ''
$secret
private
mixed
$secret
Methods
admin_permission_check()
public
admin_permission_check(WP_REST_Request $request) : mixed
Parameters
- $request : WP_REST_Request
handle_get_request()
public
handle_get_request(WP_REST_Request $request) : void
Parameters
- $request : WP_REST_Request
register_routes()
Register all routes that the controller uses.
public
register_routes() : mixed
rest_uri()
public
rest_uri([mixed $uri = '' ]) : mixed
Parameters
- $uri : mixed = ''
rest_url()
public
rest_url([mixed $uri = '' ]) : mixed
Parameters
- $uri : mixed = ''
webhook()
public
webhook(WP_REST_Request $request) : mixed
Parameters
- $request : WP_REST_Request
add_validation_error()
Allows a status code of 200 to be returned even if there is a validation error.
protected
add_validation_error(WP_Error $error) : mixed
Parameters
- $error : WP_Error
get_error_messages()
protected
get_error_messages() : mixed
get_messages()
protected
get_messages([mixed $types = 'all' ]) : mixed
Parameters
- $types : mixed = 'all'
register_authenticated_route()
protected
register_authenticated_route(string $route) : mixed
Parameters
- $route : string
send_error_response()
private
send_error_response(mixed $message[, mixed $code = 400 ]) : mixed
Parameters
- $message : mixed
- $code : mixed = 400