mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
replace wc gateway settings with independent settings system
This commit is contained in:
parent
621567da66
commit
4dadd6143f
16 changed files with 514 additions and 535 deletions
|
@ -27,7 +27,7 @@ class Environment
|
|||
public function currentEnvironment() : string
|
||||
{
|
||||
return (
|
||||
$this->settings->has('sandbox_on') && wc_string_to_bool($this->settings->get('sandbox_on'))
|
||||
$this->settings->has('sandbox_on') && $this->settings->get('sandbox_on')
|
||||
) ? self::SANDBOX : self::PRODUCTION;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class State
|
|||
/**
|
||||
* Once we can fetch credentials we are completely onboarded.
|
||||
*/
|
||||
if ($this->settings->has('client_id')) {
|
||||
if ($this->settings->has('client_id') && $this->settings->get('client_id')) {
|
||||
$value = self::STATE_ONBOARDED;
|
||||
}
|
||||
return $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue