mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Do not call seller status if current state is not onboarded
This commit is contained in:
parent
98e356da17
commit
a0e431e07c
1 changed files with 4 additions and 0 deletions
|
@ -338,6 +338,10 @@ class PayUponInvoice {
|
|||
add_filter(
|
||||
'woocommerce_available_payment_gateways',
|
||||
function ( array $methods ): array {
|
||||
if ( State::STATE_ONBOARDED !== $this->state->current_state() ) {
|
||||
return $methods;
|
||||
}
|
||||
|
||||
if (
|
||||
! $this->pui_product_status->pui_is_active()
|
||||
|| ! $this->pui_helper->is_checkout_ready_for_pui()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue