Automattic\WooCommerce\Internal\Admin
WcPayWelcomePage::get_incentive
Get the WooPayments incentive details, if available.
Method of the class: WcPayWelcomePage{}
No Hooks.
Returns
Array|null
. The incentive details. Null if there is no incentive available.
Usage
// private - for code of main (parent) class only $result = $this->get_incentive(): ?array;
WcPayWelcomePage::get_incentive() WcPayWelcomePage::get incentive code WC 9.9.5
private function get_incentive(): ?array { return $this->suggestion_incentives->get_incentive( PaymentExtensionSuggestions::WOOPAYMENTS, WC()->countries->get_base_country(), self::INCENTIVE_TYPE, true ); }