WC_Stripe_Controller_Order_Actions
extends WC_Stripe_Rest_Controller
in package
uses
WC_Stripe_Controller_Frontend_Trait
Tags
Table of Contents
Properties
- $error : WP_Error
- $namespace : mixed
- $request : WP_REST_Request
Methods
- admin_permission_check() : mixed
- capture() : mixed
- charge_view() : mixed
- customer_payment_methods() : mixed
- order_actions_permission_check() : mixed
- process_payment() : mixed
- Process a payment as an admin.
- register_routes() : mixed
- Register all routes that the controller uses.
- rest_uri() : mixed
- rest_url() : mixed
- validate_order_id() : mixed
- Return true if the order_id is a valid post.
- validate_rest_nonce() : bool|WP_Error
- void() : mixed
- add_validation_error() : mixed
- Allows a status code of 200 to be returned even if there is a validation error.
- cart_includes() : mixed
- empty_cart() : void
- frontend_includes() : mixed
- get_error_messages() : mixed
- get_messages() : mixed
- get_supported_gateways() : mixed
- register_authenticated_route() : mixed
Properties
$error
protected
WP_Error
$error
= \null
$namespace
protected
mixed
$namespace
= 'order~action'
$request
private
WP_REST_Request
$request
Tags
Methods
admin_permission_check()
public
admin_permission_check(WP_REST_Request $request) : mixed
Parameters
- $request : WP_REST_Request
capture()
public
capture(WP_REST_Request $request) : mixed
Parameters
- $request : WP_REST_Request
charge_view()
public
charge_view(WP_REST_Request $request) : mixed
Parameters
- $request : WP_REST_Request
customer_payment_methods()
public
customer_payment_methods(WP_REST_Request $request) : mixed
Parameters
- $request : WP_REST_Request
order_actions_permission_check()
public
order_actions_permission_check(mixed $request) : mixed
Parameters
- $request : mixed
process_payment()
Process a payment as an admin.
public
process_payment(WP_REST_Request $request) : mixed
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 = ''
validate_order_id()
Return true if the order_id is a valid post.
public
validate_order_id(int $order_id) : mixed
Parameters
- $order_id : int
validate_rest_nonce()
public
validate_rest_nonce(mixed $request) : bool|WP_Error
Parameters
- $request : mixed
Tags
Return values
bool|WP_Errorvoid()
public
void(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
cart_includes()
protected
cart_includes() : mixed
empty_cart()
protected
empty_cart(WC_Cart $cart) : void
Parameters
- $cart : WC_Cart
frontend_includes()
protected
frontend_includes() : mixed
get_error_messages()
protected
get_error_messages() : mixed
get_messages()
protected
get_messages([mixed $types = 'all' ]) : mixed
Parameters
- $types : mixed = 'all'
get_supported_gateways()
protected
get_supported_gateways([mixed $context = 'product' ]) : mixed
Parameters
- $context : mixed = 'product'
register_authenticated_route()
protected
register_authenticated_route(string $route) : mixed
Parameters
- $route : string