WC_Gateway_Paypal_Notices
in package
Class WC_Gateway_Paypal_Notices.
Tags
Table of Contents
- $notices : PayPalNotices
- The delegated notices instance.
- __construct() : mixed
- Constructor.
- add_paypal_migration_notice() : void
- Add notice warning about the migration to PayPal Payments.
- add_paypal_migration_notice_on_payments_settings_page() : void
- Add notice warning about the migration to PayPal Payments on the Payments settings page.
- add_paypal_notices() : void
- Add PayPal Standard notices.
- add_paypal_notices_on_payments_settings_page() : void
- Add PayPal notices on the payments settings page.
- clear_account_restriction_flag() : void
- Clear the flag indicating PayPal account restriction.
- manage_account_restriction_flag_for_notice() : void
- Handle PayPal order response to manage account restriction notices.
- set_account_restriction_flag() : void
- Set the flag indicating PayPal account restriction.
- paypal_migration_notice_dismissed() : bool
- Check if the installation notice has been dismissed.
Properties
$notices
The delegated notices instance.
private
PayPalNotices
$notices
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —add_paypal_migration_notice()
Add notice warning about the migration to PayPal Payments.
public
add_paypal_migration_notice() : void
Tags
Return values
void —add_paypal_migration_notice_on_payments_settings_page()
Add notice warning about the migration to PayPal Payments on the Payments settings page.
public
add_paypal_migration_notice_on_payments_settings_page() : void
Tags
Return values
void —add_paypal_notices()
Add PayPal Standard notices.
public
add_paypal_notices() : void
Tags
Return values
void —add_paypal_notices_on_payments_settings_page()
Add PayPal notices on the payments settings page.
public
add_paypal_notices_on_payments_settings_page() : void
Tags
Return values
void —clear_account_restriction_flag()
Clear the flag indicating PayPal account restriction.
public
static clear_account_restriction_flag() : void
Tags
Return values
void —manage_account_restriction_flag_for_notice()
Handle PayPal order response to manage account restriction notices.
public
static manage_account_restriction_flag_for_notice(int|string $http_code, array<string|int, mixed> $response_data, WC_Order $order) : void
Parameters
- $http_code : int|string
-
The HTTP status code from the PayPal API response.
- $response_data : array<string|int, mixed>
-
The decoded response data from the PayPal API.
- $order : WC_Order
-
The WooCommerce order object.
Tags
Return values
void —set_account_restriction_flag()
Set the flag indicating PayPal account restriction.
public
static set_account_restriction_flag() : void
Tags
Return values
void —paypal_migration_notice_dismissed()
Check if the installation notice has been dismissed.
protected
static paypal_migration_notice_dismissed() : bool
