'test','live_public'=>'','live_secret'=>'','test_public'=>'','test_secret'=>''); public function is_connected(){$m=$this->credentials['mode']??'test';return($m==='live')?!empty($this->credentials['live_secret']):!empty($this->credentials['test_secret']);} public function admin_widget($prev=array()){ $c=$this->get_credentials(); $int=wmf_get_integrations(); $act=$int->action_update; $nonce=wp_create_nonce($act); $m=$c['mode']??'test'; $conn=$this->is_connected(); echo '
'; if($conn) echo '
✓ Verbunden ('.($m==='live'?'Live':'Test').')
'; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '

'; echo '

'; echo '
'; echo '
'; echo '

'; echo '

'; echo '
'; echo '

Stripe Dashboard → API-Schluessel

'; echo '

'; echo '
'; echo ''; echo '
'; } }