Commit 7671944e authored by Andy J's avatar Andy J

Refs #SHOP-2145

parent d884b8f5
......@@ -10,6 +10,8 @@ $security = isset($_REQUEST['security']) ? $_REQUEST['security'] : null;
$module = "kPlugin_{$oPlugin->kPlugin}_paypal";
$method = "/" . str_replace('frontend', 'paymentmethod', $oPlugin->cFrontendPfad);
$config = Shop::getSettings([CONF_KAUFABWICKLUNG]);
if ($type) {
switch ($type) {
case 'basic':
......@@ -41,6 +43,12 @@ if ($type) {
if ($payPal) {
$results['modus'] = $payPal->getModus();
$results['linked'] = PayPalHelper::isLinked($payPal->getPaymentId());
if (!preg_match('/^[\w-_\+\\\\\/]+$/m', $config['kaufabwicklung']['bestellabschluss_bestellnummer_praefix']) ||
!preg_match('/^[\w-_\+\\\\\/]+$/m', $config['kaufabwicklung']['bestellabschluss_bestellnummer_suffix'])) {
$results['invoice_number'] = "Ungültige Zeichen in der Bestellnummer";
}
}
$results['type'] = $type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment