Wiki-Quellcode von Bezahlart Giropay

Zuletzt geändert von MACH ProForms GmbH am 26.11.2024

Verstecke letzte Bearbeiter
MACH ProForms GmbH 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() {
MACH ProForms GmbH 2.1 9 try {
MACH ProForms GmbH 1.1 10
MACH ProForms GmbH 2.1 11 const collection = db.getCollection("organizationConfiguration");
MACH ProForms GmbH 1.1 12
13 const documents = collection.find();
MACH ProForms GmbH 2.1 14
MACH ProForms GmbH 1.1 15 documents.forEach(function(document){
16
MACH ProForms GmbH 2.1 17 document.moduleConfigurations.forEach(function(moduleConfiguration){
MACH ProForms GmbH 1.1 18
MACH ProForms GmbH 2.1 19 if (moduleConfiguration._class == "de.formsolutions.payment.configuration.EPaymentKivGiropayConfiguration" ||
MACH ProForms GmbH 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") {
MACH ProForms GmbH 2.1 23
24 // Variante 1: Write to file
25 //fs.writeFileSync("./analyze-paymenttyp.json", document._id + ";" + moduleConfiguration._class + "\n", { flag: 'a+' });
MACH ProForms GmbH 1.1 26
MACH ProForms GmbH 2.1 27 // Variante 2: Print into console
28 print(document._id + ";" + moduleConfiguration._class);
29 }
30
MACH ProForms GmbH 1.1 31 });
32 });
33
MACH ProForms GmbH 2.1 34 } catch (error) {
35 print('Error ', error);
36 }
MACH ProForms GmbH 1.1 37 }
38
MACH ProForms GmbH 2.1 39 print('Start....');
MACH ProForms GmbH 1.1 40 findPaymenttype();
MACH ProForms GmbH 2.1 41 print('Finished....');
MACH ProForms GmbH 1.1 42 {{/code}}