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 10.7.0
private function get_incentive(): ?array {
return $this->suggestion_incentives->get_incentive(
PaymentsExtensionSuggestions::WOOPAYMENTS,
WC()->countries->get_base_country(),
self::INCENTIVE_TYPE,
true
);
}