Automattic\WooCommerce\Internal\Admin\Settings
PaymentsRestController::get_woopay_eligibility
Get WooPay eligibility status.
Method of the class: PaymentsRestController{}
No Hooks.
Returns
Array
. The WooPay eligibility status.
Usage
// protected - for code of main (parent) or child class $result = $this->get_woopay_eligibility();
PaymentsRestController::get_woopay_eligibility() PaymentsRestController::get woopay eligibility code WC 9.8.5
protected function get_woopay_eligibility() { return rest_ensure_response( array( 'is_eligible' => WCPayPromotion::is_woopay_eligible(), ) ); }