view['wpsg_mod_paypal']; $arStatus = (array)($arView['arStatus']??[]); $bSandbox = (bool)$arView['bSandbox']; $arStornoStatus = (array)$this->get_option('wpsg_mod_paypal_stornostate'); $strDeveloperURL = 'https://developer.paypal.com/dashboard/applications/'.(($bSandbox)?'sandbox':'live'); // Das gespeicherte Prüfergebnis gilt nur für den aktuell eingestellten Modus $bChecked = (isset($arStatus['time']) && (bool)($arStatus['sandbox']??false) === $bSandbox); $strBadge = '%s'; if ($bSandbox) { $strMode = sprintf($strBadge, 'warning', esc_html__('Sandbox (Testbetrieb)', 'wpsg')); } else { $strMode = sprintf($strBadge, 'success', esc_html__('Live', 'wpsg')); } if (!$arView['bCredentials']) { $strConnection = sprintf($strBadge, 'default', esc_html__('Keine Zugangsdaten hinterlegt', 'wpsg')); } else if (!$bChecked) { $strConnection = sprintf($strBadge, 'default', esc_html__('Noch nicht geprüft, bitte speichern', 'wpsg')); } else if ($arStatus['connected'] === true) { $strConnection = sprintf($strBadge, 'success', esc_html__('Verbindung erfolgreich', 'wpsg')); } else { $strConnection = sprintf($strBadge, 'danger', esc_html__('Anmeldung fehlgeschlagen', 'wpsg')); if ((string)($arStatus['message']??'') !== '') $strConnection .= '
'.esc_html($arStatus['message']).''; } if ($bChecked && $arStatus['connected'] === true) { $strWebHook = sprintf($strBadge, (($arStatus['webhook'] === true)?'success':'warning'), (($arStatus['webhook'] === true)?esc_html__('Angemeldet', 'wpsg'):esc_html__('Nicht angemeldet', 'wpsg'))); } else { $strWebHook = sprintf($strBadge, 'default', esc_html__('Unbekannt', 'wpsg')); } ?>
get_option('wpsg_mod_paypal_bezeichnung'), ['help' => 'wpsg_shippay_name']); ?> get_option('wpsg_mod_paypal_aktiv'), ['help' => 'wpsg_shippay_activ']); ?> get_option('wpsg_mod_paypal_hint'), ['help' => 'wpsg_shippay_hint']); ?> get_option('wpsg_mod_paypal_gebuehr'), true), ['help' => 'wpsg_shippay_gebuehr', 'unit' => $this->get_option('wpsg_currency').' / %']); ?> get_option('wpsg_mod_paypal_mwst'), ['help' => 'wpsg_shippay_mwst']); ?> get_option('wpsg_mod_paypal_sandbox'), ['help' => 'wpsg_mod_paypal_sandbox', 'hint' => esc_html__('Im Sandbox Modus werden keine echten Zahlungen ausgeführt. Sandbox und Live haben eigene Zugangsdaten.', 'wpsg')]); ?> get_option('wpsg_mod_paypal_clientid'), ['help' => 'wpsg_mod_paypal_clientid']); ?> get_option('wpsg_mod_paypal_secret'), ['help' => 'wpsg_mod_paypal_secret', 'hint' => wpsg_translate(__('Client ID und Secret erhalten Sie im PayPal Developer Dashboard unter "Apps & Credentials".', 'wpsg'), esc_url($strDeveloperURL))]); ?> true, 'help' => 'wpsg_mod_paypal_webhook_url', 'hint' => esc_html__('Über den WebHook meldet PayPal den Zahlungseingang an den Shop. Die URL muss per HTTPS von außen erreichbar sein.', 'wpsg')]); ?> 'wpsg_mod_paypal_createwebhook']); ?> get_option('wpsg_mod_paypal_subject'), ['help' => 'wpsg_mod_paypal_subject']); ?> get_option('wpsg_mod_paypal_invoicenumber'), ['help' => 'wpsg_mod_paypal_invoicenumber']); ?> get_option('wpsg_mod_paypal_currency'), ['help' => 'wpsg_mod_paypal_currency']); ?> __('Deutsch', 'wpsg'), 'US' => __('Englisch', 'wpsg'), 'FR' => __('Französisch', 'wpsg')], $this->get_option('wpsg_mod_paypal_language'), ['help' => 'wpsg_mod_paypal_language']); ?> get_option('wpsg_mod_paypal_autostart'), ['help' => 'wpsg_shippay_paystart']); ?> view['pages'], $this->get_option('wpsg_page_mod_paypal_success'), ['help' => 'wpsg_page_mod_paypal_success']); ?> view['pages'], $this->get_option('wpsg_page_mod_paypal_error'), ['help' => 'wpsg_page_mod_paypal_error']); ?>

arStatus as $status_id => $status_label) { ?>