WC_Gateway_Paypal_Transact_Account_Manager::get_transact_account_datapublicWC 1.0

Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use Automattic\WooCommerce\Gateways\PayPal\TransactAccountManager::get_transact_account_data(). This method will be removed in 11.0.0 instead.

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

Method of the class: WC_Gateway_Paypal_Transact_Account_Manager{}

No Hooks.

Returns

Array|null. Returns null if the transact account cannot be retrieved.

Usage

$WC_Gateway_Paypal_Transact_Account_Manager = new WC_Gateway_Paypal_Transact_Account_Manager();
$WC_Gateway_Paypal_Transact_Account_Manager->get_transact_account_data( $account_type );
$account_type(string) (required)
The type of account to get (merchant or provider).

Changelog

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

WC_Gateway_Paypal_Transact_Account_Manager::get_transact_account_data() code WC 10.5.0

public function get_transact_account_data( $account_type ) {
	wc_deprecated_function(
		__METHOD__,
		'10.5.0',
		PayPalTransactAccountManager::class . '::get_transact_account_data()'
	);

	return $this->transact_account_manager->get_transact_account_data( $account_type );
}