• Namespace
  • Class
  • Tree
  • Deprecated
  • Hook Reference

Namespaces

  • None
  • PaymentPlugins

Classes

  • WC_Payment_Gateway_Stripe
  • WC_Payment_Gateway_Stripe_ACH
  • WC_Payment_Gateway_Stripe_Afterpay
  • WC_Payment_Gateway_Stripe_Alipay
  • WC_Payment_Gateway_Stripe_ApplePay
  • WC_Payment_Gateway_Stripe_Bancontact
  • WC_Payment_Gateway_Stripe_BECS
  • WC_Payment_Gateway_Stripe_Boleto
  • WC_Payment_Gateway_Stripe_CC
  • WC_Payment_Gateway_Stripe_EPS
  • WC_Payment_Gateway_Stripe_FPX
  • WC_Payment_Gateway_Stripe_Giropay
  • WC_Payment_Gateway_Stripe_GooglePay
  • WC_Payment_Gateway_Stripe_GrabPay
  • WC_Payment_Gateway_Stripe_Ideal
  • WC_Payment_Gateway_Stripe_Klarna
  • WC_Payment_Gateway_Stripe_Local_Payment
  • WC_Payment_Gateway_Stripe_Multibanco
  • WC_Payment_Gateway_Stripe_OXXO
  • WC_Payment_Gateway_Stripe_P24
  • WC_Payment_Gateway_Stripe_Payment_Request
  • WC_Payment_Gateway_Stripe_Sepa
  • WC_Payment_Gateway_Stripe_Sofort
  • WC_Payment_Gateway_Stripe_WeChat
  • WC_Payment_Token_Stripe
  • WC_Payment_Token_Stripe_ACH
  • WC_Payment_Token_Stripe_ApplePay
  • WC_Payment_Token_Stripe_CC
  • WC_Payment_Token_Stripe_GooglePay
  • WC_Payment_Token_Stripe_Local
  • WC_Payment_Token_Stripe_Sepa
  • WC_Stripe_Account_Settings
  • WC_Stripe_Admin_Assets
  • WC_Stripe_Admin_Menus
  • WC_Stripe_Admin_Order_Metaboxes
  • WC_Stripe_Admin_Settings
  • WC_Stripe_Admin_User_Edit
  • WC_Stripe_Advanced_Settings
  • WC_Stripe_API_Operation
  • WC_Stripe_API_Request_Filter
  • WC_Stripe_API_Settings
  • WC_Stripe_Constants
  • WC_Stripe_Controller_Cart
  • WC_Stripe_Controller_Checkout
  • WC_Stripe_Controller_Gateway_Settings
  • WC_Stripe_Controller_GooglePay
  • WC_Stripe_Controller_Order_Actions
  • WC_Stripe_Controller_Payment_Intent
  • WC_Stripe_Controller_Payment_Method
  • WC_Stripe_Controller_Plaid
  • WC_Stripe_Controller_Product_Data
  • WC_Stripe_Controller_Source
  • WC_Stripe_Controller_Webhook
  • WC_Stripe_Customer_Manager
  • WC_Stripe_Field_Manager
  • WC_Stripe_Frontend_Scripts
  • WC_Stripe_Gateway
  • WC_Stripe_Gateway_Conversion
  • WC_Stripe_Install
  • WC_Stripe_Manager
  • WC_Stripe_Payment
  • WC_Stripe_Payment_Balance
  • WC_Stripe_Payment_Charge
  • WC_Stripe_Payment_Charge_Local
  • WC_Stripe_Payment_Factory
  • WC_Stripe_Payment_Intent
  • WC_Stripe_Product_Gateway_Option
  • WC_Stripe_Product_Option
  • WC_Stripe_Redirect_Handler
  • WC_Stripe_Rest_API
  • WC_Stripe_Rest_Controller
  • WC_Stripe_Settings_API
  • WC_Stripe_Shortcode_Payment_Buttons
  • WC_Stripe_Shortcodes
  • WC_Stripe_Update
  • WC_Stripe_Utils

Traits

  • WC_Payment_Token_Payment_Method_Trait
  • WC_Payment_Token_Source_Trait
  • WC_Stripe_Controller_Cart_Trait
  • WC_Stripe_Controller_Frontend_Trait
  • WC_Stripe_Local_Payment_Charge_Trait
  • WC_Stripe_Local_Payment_Intent_Trait
  • WC_Stripe_Payment_Charge_Trait
  • WC_Stripe_Payment_Intent_Trait
  • WC_Stripe_Settings_Trait

Functions

  • stripe_wc
  • wc_stripe_add_allowed_html
  • wc_stripe_add_number_precision
  • wc_stripe_api_options
  • wc_stripe_available_payment_gateways
  • wc_stripe_charge_dispute_closed
  • wc_stripe_charge_dispute_created
  • wc_stripe_credit_card_labels
  • wc_stripe_delete_customer
  • wc_stripe_display_prices_including_tax
  • wc_stripe_filter_address_state
  • wc_stripe_filter_order_id
  • wc_stripe_get_account_id
  • wc_stripe_get_available_local_gateways
  • wc_stripe_get_checkout_fields
  • wc_stripe_get_currencies
  • wc_stripe_get_current_page
  • wc_stripe_get_custom_forms
  • wc_stripe_get_customer_id
  • wc_stripe_get_customer_payment_tokens
  • wc_stripe_get_display_items
  • wc_stripe_get_error_messages
  • wc_stripe_get_idempotency_key
  • wc_stripe_get_local_payment_params
  • wc_stripe_get_order_from_source_id
  • wc_stripe_get_order_from_transaction
  • wc_stripe_get_publishable_key
  • wc_stripe_get_secret_key
  • wc_stripe_get_shipping_options
  • wc_stripe_get_site_locale
  • wc_stripe_get_template
  • wc_stripe_get_template_html
  • wc_stripe_hidden_field
  • wc_stripe_log
  • wc_stripe_log_error
  • wc_stripe_log_info
  • wc_stripe_mode
  • wc_stripe_order_cancelled
  • wc_stripe_order_has_shipping_address
  • wc_stripe_order_mode
  • wc_stripe_order_status_completed
  • wc_stripe_output_checkout_error
  • wc_stripe_payment_complete_order_status
  • wc_stripe_payment_gateways
  • wc_stripe_payment_intent_field
  • wc_stripe_pre_orders_active
  • wc_stripe_process_charge_failed
  • wc_stripe_process_charge_succeeded
  • wc_stripe_process_create_refund
  • wc_stripe_process_payment_intent_succeeded
  • wc_stripe_process_shop_subscription_meta
  • wc_stripe_process_source_chargeable
  • wc_stripe_remove_number_precision
  • wc_stripe_remove_order_locks
  • wc_stripe_restore_cart
  • wc_stripe_restore_cart_after_product_checkout
  • wc_stripe_retry_source_chargeable
  • wc_stripe_review_closed
  • wc_stripe_review_opened
  • wc_stripe_save_customer
  • wc_stripe_set_checkout_error
  • wc_stripe_set_idempotency_key
  • wc_stripe_shipping_address_serviceable
  • wc_stripe_stash_cart
  • wc_stripe_stash_product_cart
  • wc_stripe_token_field
  • wc_stripe_update_customer_location
  • wc_stripe_update_option_3_3_13
  • wc_stripe_update_shipping_methods
  • wc_stripe_woocommerce_payment_token_deleted
  • wcs_stripe_active

Class WC_Payment_Gateway_Stripe_GooglePay

WC_Payment_Gateway
Extended by WC_Payment_Gateway_Stripe uses WC_Stripe_Settings_Trait
Extended by WC_Payment_Gateway_Stripe_GooglePay uses WC_Stripe_Payment_Intent_Trait
Package: Stripe\Gateways
Author: PaymentPlugins
Since: 3.0.0
Located at gateways/class-wc-payment-gateway-stripe-googlepay.php

Methods summary

public
# __construct( )

Overrides

WC_Payment_Gateway_Stripe::__construct
public
# init_supports( )

Overrides

WC_Payment_Gateway_Stripe::init_supports
public
# enqueue_checkout_scripts( WC_Stripe_Frontend_Scripts $scripts )

Enqueue scripts needed by the gateway on the checkout page.

Enqueue scripts needed by the gateway on the checkout page.

Parameters

$scripts

Overrides

WC_Payment_Gateway_Stripe::enqueue_checkout_scripts
public
# enqueue_product_scripts( WC_Stripe_Frontend_Scripts $scripts )

Enqueue scripts needed by the gateway on the product page.

Enqueue scripts needed by the gateway on the product page.

Parameters

$scripts

Overrides

WC_Payment_Gateway_Stripe::enqueue_product_scripts
public
# enqueue_cart_scripts( WC_Stripe_Frontend_Scripts $scripts )

Enqueue scripts needed by the gateway on the cart page.

Enqueue scripts needed by the gateway on the cart page.

Parameters

$scripts

Overrides

WC_Payment_Gateway_Stripe::enqueue_cart_scripts
public
# enqueue_admin_scripts( )

Overrides

WC_Payment_Gateway_Stripe::enqueue_admin_scripts
public array
# get_localized_params( )

Returns

array

Overrides

WC_Payment_Gateway_Stripe::get_localized_params
protected array
# get_display_item_for_cart( float $price, string $label, string $type, mixed $args )

Parameters

$price
$label
$type
$args
$args

Returns

array

Since

3.2.1

Overrides

WC_Payment_Gateway_Stripe::get_display_item_for_cart
protected array
# get_display_item_for_product( WC_Product $product )

Parameters

$product

Returns

array

Since

3.2.1

Overrides

WC_Payment_Gateway_Stripe::get_display_item_for_product
protected
# get_display_item_for_order( float $price, string $label, WC_Order $order, string $type, mixed $args )

Parameters

$price
$label
$order
$type
$args
$args

Overrides

WC_Payment_Gateway_Stripe::get_display_item_for_order
public array
# get_formatted_shipping_methods( array $methods = array() , $sort,… )

Parameters

$methods
$sort,…

Returns

array

Since

3.2.1

Overrides

WC_Payment_Gateway_Stripe::get_formatted_shipping_methods
public array
# get_formatted_shipping_method( float $price, WC_Shipping_Rate $rate, string $i, array $package, boolean $incl_tax )

Parameters

$price
$rate
$i
$package
$incl_tax

Returns

array

Since

3.2.1

Overrides

WC_Payment_Gateway_Stripe::get_formatted_shipping_method
protected string|
# get_formatted_shipping_label( float $price, WC_Shipping_Rate $rate, boolean $incl_tax )

Parameters

$price
$rate
$incl_tax

Returns

string|

Overrides

WC_Payment_Gateway_Stripe::get_formatted_shipping_label
public
# get_shipping_method_label( WC_Shipping_Rate $rate )

Return a formatted shipping method label. Example 5 Day shipping: 5 USD

Return a formatted shipping method label. Example 5 Day shipping: 5 USD

Deprecated

Parameters

$rate

Returns

public
# add_to_cart_response( [] $data )

Decorate the response with data specific to the gateway.

Decorate the response with data specific to the gateway.

Parameters

$data

Overrides

WC_Payment_Gateway_Stripe::add_to_cart_response
public array
# get_mini_cart_dependencies( array $deps, $scripts )

Parameters

$deps
$scripts

Returns

array

Overrides

WC_Payment_Gateway_Stripe::get_mini_cart_dependencies
public boolean
# has_enqueued_scripts( WC_Stripe_Frontend_Scripts $scripts )

Parameters

$scripts

Returns

boolean

Since

3.2.5

Overrides

WC_Payment_Gateway_Stripe::has_enqueued_scripts
public mixed|
# get_payment_button_locale( )

Returns

mixed|

Since

3.3.14
public mixed|
# get_supported_button_locales( )

Returns

mixed|

Since

3.3.14

Methods inherited from WC_Payment_Gateway_Stripe

add_payment_method(), add_stripe_order_args(), banner_checkout_enabled(), capture_charge(), cart_checkout_enabled(), cart_fields(), create_customer(), create_payment_method(), delete_payment_method(), enqueue_add_payment_method_scripts(), enqueue_frontend_scripts(), enqueue_mini_cart_scripts(), get_display_items(), get_display_items_for_cart(), get_display_items_for_order(), get_element_options(), get_generic_error(), get_method_formats(), get_needs_shipping(), get_new_method_label(), get_new_source_id(), get_new_source_token(), get_order_description(), get_order_error(), get_order_meta_data(), get_payment_intent_id(), get_payment_method_from_charge(), get_payment_method_from_request(), get_payment_source(), get_payment_token(), get_saved_methods_label(), get_saved_source_id(), get_shipping_method_id(), get_shipping_methods(), get_shipping_packages(), get_token(), get_transaction_url(), get_update_shipping_address_response(), get_update_shipping_method_response(), has_order_lock(), hooks(), init_form_fields(), is_change_payment_method_request(), is_processing_scheduled_payment(), mini_cart_enabled(), mini_cart_fields(), order_contains_pre_order(), output_display_items(), payment_fields(), payment_methods_list_item(), pre_order_requires_tokenization(), process_change_payment_method_request(), process_payment(), process_pre_order(), process_pre_order_payment(), process_refund(), process_zero_total_order(), product_checkout_enabled(), product_fields(), release_order_lock(), retrieve_charge(), save_order_meta(), save_payment_method(), save_zero_total_meta(), saved_payment_methods(), scheduled_subscription_payment(), set_new_source_token(), set_order_lock(), set_payment_method_token(), set_payment_save_error(), set_post_payment_process(), should_save_payment_method(), show_save_source(), subscription_payment_meta(), trigger_post_payment_processes(), update_failing_payment_method(), use_saved_source(), validate_payment_sections_field(), void_charge()

Methods used from WC_Stripe_Payment_Intent_Trait

get_confirmation_method(), get_payment_intent_checkout_url(), get_payment_intent_confirmation_args(), get_payment_method_type(), get_payment_object()

Methods used from WC_Stripe_Settings_Trait

admin_nav_tab(), admin_options(), display_errors(), generate_button_demo_html(), generate_description_html(), generate_multi_select_countries_html(), generate_multiselect_html(), generate_paragraph_html(), generate_stripe_button_html(), get_custom_attribute_html(), get_prefix(), get_stripe_documentation_url(), is_active(), output_settings_nav(), process_admin_options(), validate_multi_select_countries_field()

Properties summary

protected string $payment_method_type
# 'card'

Properties inherited from WC_Payment_Gateway_Stripe

$checkout_error, $gateway, $has_digital_wallet, $last_payment_error, $new_source_token, $payment_intent_key, $payment_method_token, $payment_object, $payment_type_key, $post_payment_processes, $processing_payment, $save_source_key, $saved_method_key, $synchronous, $template_name, $token_key, $token_type, $wp_error

Properties used from WC_Stripe_Settings_Trait

$admin_output, $tab_title

Stripe API documentation generated by ApiGen