Paypal implements Premium_Service, Conditional, Registerable
Integrates with Paypal Express Plugin
Provided for legacy integration, this plugin is no longer supported by the WooCOmmerce team.
Tags
Interfaces, Classes and Traits
- Premium_Service
- Conditional
- Registerable
Table of Contents
- $settings : mixed
- $theme : mixed
- $was_minicart_rendered : mixed
- __construct() : mixed
- Constructor
- echo_paypal_button_cart_container() : void
- Attach a container for the paypal buttons to inject into on Fast Cart
- is_required() : mixed
- Checks if this integration is required
- maybe_add_paypal_button_container() : void
- Used as a fallback if the theme does not have a minicart but minicart is enabled.
- maybe_enqueue_assets() : void
- Enqueue the PayPal front-end integration scripts
- minicart_was_rendered() : bool
- This hook does nothing to the filter it is attached to, but is used to determine if the minicart widget ever attempted to render.
- register() : void
- Register action and filter for PayPal integration.
Properties
$settings
private
mixed
$settings
Tags
$theme
private
mixed
$theme
Tags
$was_minicart_rendered
private
mixed
$was_minicart_rendered
= false
Tags
Methods
__construct()
Constructor
public
__construct() : mixed
Tags
Return values
mixed —echo_paypal_button_cart_container()
Attach a container for the paypal buttons to inject into on Fast Cart
public
static echo_paypal_button_cart_container() : void
Tags
Return values
void —is_required()
Checks if this integration is required
public
is_required() : mixed
Tags
Return values
mixed —maybe_add_paypal_button_container()
Used as a fallback if the theme does not have a minicart but minicart is enabled.
public
maybe_add_paypal_button_container() : void
Tags
Return values
void —maybe_enqueue_assets()
Enqueue the PayPal front-end integration scripts
public
static maybe_enqueue_assets(mixed $version, mixed $debug_level) : void
Parameters
- $version : mixed
- $debug_level : mixed
Tags
Return values
void —minicart_was_rendered()
This hook does nothing to the filter it is attached to, but is used to determine if the minicart widget ever attempted to render.
public
minicart_was_rendered(mixed $is_visible) : bool
Parameters
- $is_visible : mixed
Tags
Return values
bool —register()
Register action and filter for PayPal integration.
public
register() : void