mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 16:24:33 +08:00
codestyle
This commit is contained in:
parent
722b67a3d1
commit
abb2346c9f
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ class LoginSellerEndpoint implements EndpointInterface {
|
|||
public function handle_request(): bool {
|
||||
|
||||
try {
|
||||
$data = $this->request_data->read_request( $this->nonce() );
|
||||
$is_sandbox = isset( $data['env'] ) && 'sandbox' === $data['env'];
|
||||
$data = $this->request_data->read_request( $this->nonce() );
|
||||
$is_sandbox = isset( $data['env'] ) && 'sandbox' === $data['env'];
|
||||
$this->settings->set( 'sandbox_on', $is_sandbox );
|
||||
$this->settings->persist();
|
||||
$endpoint = $is_sandbox ? $this->login_seller_sandbox : $this->login_seller_production;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue