WooCommerce Code Reference

WC_Gateway_Paypal_Buttons
in package

Handles PayPal Buttons.

Table of Contents

CLIENT_ID_OPTION  = 'woocommerce_paypal_client_id'
The option for the client-id.
$enabled  : bool
Whether the gateway should use Orders v2 API.
$gateway  : WC_Gateway_Paypal
The gateway instance.
$request  : WC_Gateway_Paypal_Request
The request instance.
__construct()  : mixed
Constructor.
get_client_id()  : string|null
Get the client-id for the PayPal buttons.
get_common_options()  : array<string|int, mixed>
Get the common attributes for the PayPal JS SDK script and modules.
get_current_page_for_app_switch()  : string
Get the current page URL, to be used for App Switch.
get_options()  : array<string|int, mixed>
Get the options for the PayPal buttons.
get_page_type()  : string
Get the page type for the PayPal buttons.
is_enabled()  : bool
Whether PayPal Buttons is enabled.

Constants

Properties

Methods