don't redirect to gateway settings if onboarded

This commit is contained in:
Kirill Braslavsky 2021-07-27 19:53:54 +03:00
parent b91ede355c
commit 257842b7f7
No known key found for this signature in database
GPG key ID: 61737D0C41BF3E75

View file

@ -193,7 +193,7 @@ class PayPalGateway extends \WC_Payment_Gateway {
*/
public function needs_setup(): bool {
return true;
return ! $this->onboarded;
}
/**