WooCommerce Code Reference

WC_Gateway_Paypal_Transact_Account_Manager
in package

Handles Transact account management.

Tags
deprecated
10.5.0

Use Automattic\WooCommerce\Gateways\PayPal\TransactAccountManager instead. This class will be removed in 11.0.0.

Table of Contents

$transact_account_manager  : PayPalTransactAccountManager
The delegated TransactAccountManager instance.
__construct()  : mixed
Constructor.
do_onboarding()  : void
Onboard the merchant with the Transact platform.
get_transact_account_data()  : array<string|int, mixed>|null
Get the Transact account (merchant or provider) data. Performs a fetch if the account is not in cache or expired.

Properties

Methods

get_transact_account_data()

Get the Transact account (merchant or provider) data. Performs a fetch if the account is not in cache or expired.

public get_transact_account_data(string $account_type) : array<string|int, mixed>|null
Parameters
$account_type : string

The type of account to get (merchant or provider).

Tags
deprecated
10.5.0

Use Automattic\WooCommerce\Gateways\PayPal\TransactAccountManager::get_transact_account_data() instead. This method will be removed in 11.0.0.

Return values
array<string|int, mixed>|nullReturns null if the transact account cannot be retrieved.