Class WC_Stripe_Controller_GooglePay
- WC_Stripe_Rest_Controller
-
WC_Stripe_Controller_GooglePay uses WC_Stripe_Controller_Cart_Trait, WC_Stripe_Controller_Frontend_Trait
Package: Stripe\Controllers
Author: PaymentPlugins
Located at controllers/class-wc-stripe-controller-googlepay.php
Author: PaymentPlugins
Located at controllers/class-wc-stripe-controller-googlepay.php
Methods summary
public
|
|
public
|
#
update_shipping_data( WP_REST_Request $request )
Update the WC shipping data from the Google payment sheet. |
public
|
#
get_payment_response_data( )
Return a formatted array of response data required by the Google payment sheet. |
private
|
|
private
string
|
#
get_default_shipping_method( array $methods )
Returns a default shipping method based on the chosen shipping methods. |
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()
Methods used from WC_Stripe_Controller_Cart_Trait
add_ready_to_calc_shipping()
,
get_shipping_method_from_request()
,
validate_shipping_address()
Methods used from WC_Stripe_Controller_Frontend_Trait
Properties summary
protected
string
|
$namespace
|
#
'googlepay'
|
private
|
$gateway
|
|
private
string
|
$shipping_method_id
|
|
private
string
|
$reason_code
|