Wiki-Quellcode von Bezahlart Giropay
Zuletzt geändert von MACH ProForms GmbH am 26.11.2024
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | Zum 31.12.2024 wird die Bezahlart Giropay abgeschaltet. In diesem Zuge finden Sie nachstehend eine Datenbankabfrage, welche alle Mandanten auflistet, die diese Bezahlart in der Modulkonfiguration konfiguriert haben. |
2 | |||
3 | Das Skript basiert auf der neuen Mongo-Shell und kann direkt in der Konsole und/oder über ein entsprechenden Datenbanktool auf der Mongo-Datenbank ausgeführt werden. | ||
4 | |||
5 | {{code language="shell"}} | ||
6 | use administrationCenter; | ||
7 | |||
8 | function findPaymenttype() { | ||
![]() |
2.1 | 9 | try { |
![]() |
1.1 | 10 | |
![]() |
2.1 | 11 | const collection = db.getCollection("organizationConfiguration"); |
![]() |
1.1 | 12 | |
13 | const documents = collection.find(); | ||
![]() |
2.1 | 14 | |
![]() |
1.1 | 15 | documents.forEach(function(document){ |
16 | |||
![]() |
2.1 | 17 | document.moduleConfigurations.forEach(function(moduleConfiguration){ |
![]() |
1.1 | 18 | |
![]() |
2.1 | 19 | if (moduleConfiguration._class == "de.formsolutions.payment.configuration.EPaymentKivGiropayConfiguration" || |
![]() |
1.1 | 20 | moduleConfiguration._class == "de.formsolutions.payment.configuration.EPayBLGiropayConfiguration" || |
21 | moduleConfiguration._class == "de.formsolutions.payment.configuration.GirocheckoutGiropayConfiguration" || | ||
22 | moduleConfiguration._class == "de.formsolutions.payment.configuration.InfomaGiropayConfiguration") { | ||
![]() |
2.1 | 23 | |
24 | // Variante 1: Write to file | ||
25 | //fs.writeFileSync("./analyze-paymenttyp.json", document._id + ";" + moduleConfiguration._class + "\n", { flag: 'a+' }); | ||
![]() |
1.1 | 26 | |
![]() |
2.1 | 27 | // Variante 2: Print into console |
28 | print(document._id + ";" + moduleConfiguration._class); | ||
29 | } | ||
30 | |||
![]() |
1.1 | 31 | }); |
32 | }); | ||
33 | |||
![]() |
2.1 | 34 | } catch (error) { |
35 | print('Error ', error); | ||
36 | } | ||
![]() |
1.1 | 37 | } |
38 | |||
![]() |
2.1 | 39 | print('Start....'); |
![]() |
1.1 | 40 | findPaymenttype(); |
![]() |
2.1 | 41 | print('Finished....'); |
![]() |
1.1 | 42 | {{/code}} |