Persist client credentials as soon as they are recived

This commit is contained in:
dinamiko 2022-05-31 15:42:40 +02:00
parent 12a8596261
commit e0a94bf2ed

View file

@ -145,6 +145,7 @@ class LoginSellerEndpoint implements EndpointInterface {
}
$this->settings->set( 'client_secret', $credentials->client_secret );
$this->settings->set( 'client_id', $credentials->client_id );
$this->settings->persist();
$accept_cards = (bool) ( $data['acceptCards'] ?? true );
$funding_sources = array();