Class WC_Stripe_Controller_Payment_Method
- WC_Stripe_Rest_Controller
-
WC_Stripe_Controller_Payment_Method
Package: Stripe\Controllers
Author: PaymentPlugins
Since: 3.0.0
Located at controllers/class-wc-stripe-controller-payment-method.php
Author: PaymentPlugins
Since: 3.0.0
Located at controllers/class-wc-stripe-controller-payment-method.php
Methods summary
public
|
|
public
WP_Error|WP_REST_Response|mixed
|
#
payment_method_from_token( WP_REST_Request $request )
Creates a PaymentMethod from a Token. Use case for this controller would be if a token is provided on the client side, but PaymentIntent is desired instead of a Charge. The token must be converted to a PaymentMethod for use in a PaymentIntent. |
Methods inherited from WC_Stripe_Rest_Controller
add_validation_error(),
admin_permission_check(),
get_error_messages(),
get_messages(),
register_authenticated_route(),
rest_uri(),
rest_url()
Properties summary
protected
string
|
$namespace
|
#
'payment-method'
|