Skip to content

Commit

Permalink
feat: add tokenization
Browse files Browse the repository at this point in the history
  • Loading branch information
artembelfox committed Jan 22, 2024
1 parent 8779c81 commit ddb6cbe
Show file tree
Hide file tree
Showing 13 changed files with 547 additions and 137 deletions.
117 changes: 87 additions & 30 deletions admin/controller/payment/worldline.php

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions admin/language/de-de/payment/worldline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$_['text_tab_advanced'] = 'Erweiterte Einstellungen';
$_['text_tab_order_status'] = 'Bestellstatus';
$_['text_tab_transaction'] = 'Transaktionen';
$_['text_tab_suggest'] = 'Schlagen Sie eine neue Funktion vor';
$_['text_tab_suggest'] = 'Kontaktiere uns';
$_['text_live'] = 'Live';
$_['text_test'] = 'Test';
$_['text_api_credential_alert'] = 'Um den API Key und das API Secret in Ihrer PSPID abzurufen, führen Sie die folgenden Schritte aus:<br />1) Melden Sie sich im Backoffice an<br />2) Gehen Sie zu Configuration > Technical information > Ingenico Direct Settings > Direct API Key<br />3) Wenn Sie noch nichts konfiguriert haben, wird auf dem Bildschirm "No API credentials found" angezeigt. Um sowohl den API Key als auch das API Secret zu erstellen, klicken Sie auf "GENERATE"';
Expand Down Expand Up @@ -94,9 +94,12 @@
$_['entry_title'] = 'Zahlungstitel';
$_['entry_button_title'] = 'Titel der Zahlungsschaltfläche';
$_['entry_authorization_mode'] = 'Autorisierungsmodus';
$_['entry_group_cards'] = 'Gruppenkarten';
$_['entry_forced_tokenization'] = 'Erzwungene Tokenisierung';
$_['entry_tds_status'] = '3DS-Status';
$_['entry_challenge_indicator'] = '3DS-Herausforderungsanzeige';
$_['entry_exemption_request'] = '3DS-Ausnahmeantrag';
$_['entry_group_cards'] = 'Gruppenkarten';
$_['entry_template'] = 'Name der Vorlagendatei';
$_['entry_debug'] = 'Debug Protokollierung';
$_['entry_total'] = 'Summe';
$_['entry_geo_zone'] = 'Geozone';
Expand All @@ -115,6 +118,8 @@
// Help
$_['help_webhook_url'] = 'Legen Sie Webhooks im Worldline Back Office fest, um diese URL aufzurufen.';
$_['help_cron_url'] = 'Legen Sie einen Cron fest, um diese URL aufzurufen.';
$_['help_template'] = 'Wenn Sie eine benutzerdefinierte Vorlage verwenden, geben Sie bitte hier den Namen ein. Wenn leer, wird die Standard-Zahlungsseite angezeigt. Das Erscheinungsbild der Zahlungsseite kann im Worldline Back Office angepasst werden.';
$_['help_total'] = 'Mindestgesamtsumme im Warenkorb damit diese Zahlungsart verfügbar ist.';
$_['help_company_name'] = 'Ihr Firmenname.';
$_['help_message'] = 'Bitte erläutern Sie, wie unser Zahlungs-Plugin weiter verbessert werden kann.';

Expand All @@ -132,11 +137,10 @@

// Button
$_['button_save'] = 'Speichern';
$_['button_back'] = 'Zurück';
$_['button_sign_up'] = 'Konto erstellen / Anmelden';
$_['button_contact_us'] = 'Kontaktiere uns';
$_['button_reset_api_endpoint'] = 'API Endpoint zurücksetzen';
$_['button_copy_url'] = 'URL kopieren';
$_['button_copy_url'] = 'URL in die Zwischenablage kopieren';
$_['button_filter'] = 'Filter';
$_['button_send_suggest'] = 'Senden';
$_['button_capture'] = 'Erfassen';
Expand Down Expand Up @@ -164,5 +168,6 @@
$_['error_api_secret_test'] = 'Test API Secret ist falsch!';
$_['error_webhook_key_test'] = 'Test Webhook Key ist falsch!';
$_['error_webhook_secret_test'] = 'Test Webhook Secret ist falsch!';
$_['error_template'] = 'Der Name der Vorlagendatei ist falsch! Es muss die Endung .htm, .html oder .dhtml haben!';
$_['error_company_name'] = 'Der Firmenname muss zwischen 3 und 32 Zeichen lang sein!';
$_['error_message'] = 'Die Nachricht muss zwischen 20 und 1000 Zeichen lang sein!';
15 changes: 10 additions & 5 deletions admin/language/en-gb/payment/worldline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$_['text_tab_advanced'] = 'Advanced Settings';
$_['text_tab_order_status'] = 'Order Status';
$_['text_tab_transaction'] = 'Transactions';
$_['text_tab_suggest'] = 'Suggest a new feature';
$_['text_tab_suggest'] = 'Contact Us';
$_['text_live'] = 'Live';
$_['text_test'] = 'Test';
$_['text_api_credential_alert'] = 'To retrieve the API Key and API Secret in your PSPID, follow these steps:<br />1) Login to the Back Office<br />2) Go to Configuration > Technical information > Ingenico Direct Settings > Direct API Key<br />3) If you have not configured anything yet, the screen shows "No API credentials found". To create both API Key and API Secret click on "GENERATE"';
Expand Down Expand Up @@ -94,9 +94,12 @@
$_['entry_title'] = 'Payment Title';
$_['entry_button_title'] = 'Payment Button Title';
$_['entry_authorization_mode'] = 'Authorization Mode';
$_['entry_challenge_indicator'] = '3DS Challenge Indicator';
$_['entry_exemption_request'] = '3DS Exemption Request';
$_['entry_group_cards'] = 'Group Cards';
$_['entry_forced_tokenization'] = 'Forced Tokenization';
$_['entry_tds_status'] = '3DS Status';
$_['entry_tds_challenge_indicator'] = '3DS Challenge Indicator';
$_['entry_tds_exemption_request'] = '3DS Exemption Request';
$_['entry_template'] = 'Template File Name';
$_['entry_debug'] = 'Debug Logging';
$_['entry_total'] = 'Total';
$_['entry_geo_zone'] = 'Geo Zone';
Expand All @@ -115,6 +118,8 @@
// Help
$_['help_webhook_url'] = 'Set webhooks in Worldline Back Office to call this URL.';
$_['help_cron_url'] = 'Set a cron to call this URL.';
$_['help_template'] = 'If you are using a customized template, please enter the name here. If empty, the standard payment page will be displayed. Payment page look and feel can be customized on Worldline Back Office.';
$_['help_total'] = 'The checkout total the order must reach before this payment method becomes active.';
$_['help_company_name'] = 'Your company name.';
$_['help_message'] = 'Please explain how our payment plugin can be further improved.';

Expand All @@ -132,11 +137,10 @@

// Button
$_['button_save'] = 'Save';
$_['button_back'] = 'Back';
$_['button_sign_up'] = 'Create Account / Sign Up';
$_['button_contact_us'] = 'Contact Us';
$_['button_reset_api_endpoint'] = 'Reset API Endpoint';
$_['button_copy_url'] = 'Copy to clipboard';
$_['button_copy_url'] = 'Copy URL to clipboard';
$_['button_filter'] = 'Filter';
$_['button_send_suggest'] = 'Send';
$_['button_capture'] = 'Capture';
Expand Down Expand Up @@ -164,5 +168,6 @@
$_['error_api_secret_test'] = 'Test API Secret is incorrect!';
$_['error_webhook_key_test'] = 'Test Webhook Key is incorrect!';
$_['error_webhook_secret_test'] = 'Test Webhook Secret is incorrect!';
$_['error_template'] = 'Template File Name is incorrect! It must have the extension .htm, .html or .dhtml!';
$_['error_company_name'] = 'Company Name must be between 3 and 32 characters!';
$_['error_message'] = 'Message must be between 20 and 1000 characters!';
13 changes: 9 additions & 4 deletions admin/language/es-es/payment/worldline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$_['text_tab_advanced'] = 'Ajustes avanzados';
$_['text_tab_order_status'] = 'Estado del pedido';
$_['text_tab_transaction'] = 'Actas';
$_['text_tab_suggest'] = 'Sugerir una nueva característica';
$_['text_tab_suggest'] = 'Contacta con nosotros';
$_['text_live'] = 'Vivir';
$_['text_test'] = 'Test';
$_['text_api_credential_alert'] = 'Para recuperar el API Key y el API Secret en su PSPID, siga estos pasos:<br />1) Inicie sesión en la oficina virtual<br />2) Vaya a Configuration > Technical information > Ingenico Direct Settings > Direct API Key<br / >3) Si aún no ha configurado nada, la pantalla muestra "No API credentials found". Para crear tanto API Key como el API Secret, haga clic en "GENERATE"';
Expand Down Expand Up @@ -94,9 +94,12 @@
$_['entry_title'] = 'Título de pago';
$_['entry_button_title'] = 'Título del botón de pago';
$_['entry_authorization_mode'] = 'Modo de autorización';
$_['entry_group_cards'] = 'Tarjetas de grupo';
$_['entry_forced_tokenization'] = 'Tokenización forzada';
$_['entry_tds_status'] = 'Estado 3DS';
$_['entry_challenge_indicator'] = 'Indicador de desafío 3DS';
$_['entry_exemption_request'] = 'Solicitud de exención 3DS';
$_['entry_group_cards'] = 'Tarjetas de grupo';
$_['entry_template'] = 'Nombre del archivo de plantilla';
$_['entry_debug'] = 'Registro de depuración';
$_['entry_total'] = 'Total';
$_['entry_geo_zone'] = 'Zona Geográfica';
Expand All @@ -115,6 +118,8 @@
// Help
$_['help_webhook_url'] = 'Configure webhooks en el Back Office de Worldline para llamar a esta URL.';
$_['help_cron_url'] = 'Configure un cron para llamar a esta URL.';
$_['help_template'] = 'Si está utilizando una plantilla personalizada, ingrese el nombre aquí. Si está vacía, se mostrará la página de pago estándar. La apariencia de la página de pago se puede personalizar en el Back Office de Worldline.';
$_['help_total'] = 'El total que el pedido debe alcanzar para que este método de pago sea activado.';
$_['help_company_name'] = 'El nombre de tu compañía.';
$_['help_message'] = 'Explique cómo se puede mejorar aún más nuestro complemento de pago.';

Expand All @@ -132,11 +137,10 @@

// Button
$_['button_save'] = 'Guardar';
$_['button_back'] = 'Atrás';
$_['button_sign_up'] = 'Crear cuenta / Registrarse';
$_['button_contact_us'] = 'Contacta con nosotros';
$_['button_reset_api_endpoint'] = 'Restablecer API Endpoint';
$_['button_copy_url'] = 'Copiar al portapapeles';
$_['button_copy_url'] = 'Copiar URL al portapapeles';
$_['button_filter'] = 'Filtrar';
$_['button_send_suggest'] = 'Enviar';
$_['button_capture'] = 'Captura';
Expand Down Expand Up @@ -164,5 +168,6 @@
$_['error_api_secret_test'] = 'Test API Secret ¡Es incorrecto!';
$_['error_webhook_key_test'] = 'Test Webhook Key ¡Es incorrecto!';
$_['error_webhook_secret_test'] = 'Test Webhook Secret ¡Es incorrecto!';
$_['error_template'] = '¡El nombre del archivo de plantilla es incorrecto! ¡Debe tener la extensión .htm, .html o .dhtml!';
$_['error_company_name'] = '¡El nombre de la empresa debe tener entre 3 y 32 caracteres!';
$_['error_message'] = '¡El mensaje debe tener entre 20 y 1000 caracteres!';
13 changes: 9 additions & 4 deletions admin/language/fr-fr/payment/worldline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$_['text_tab_advanced'] = 'Réglages avancés';
$_['text_tab_order_status'] = 'Statut de la commande';
$_['text_tab_transaction'] = 'Transactions';
$_['text_tab_suggest'] = 'Suggérer une nouvelle fonctionnalité';
$_['text_tab_suggest'] = 'Contactez-nous';
$_['text_live'] = 'Vivre';
$_['text_test'] = 'Test';
$_['text_api_credential_alert'] = 'Pour récupérer la API Key et le API Secret dans votre PSPID, suivez ces étapes :<br />1) Connectez-vous au Back Office<br />2) Allez dans Configuration > Technical information > Ingenico Direct Settings > Direct API Key<br / >3) Si vous n\'avez encore rien configuré, l\'écran affiche "No API credentials found". Pour créer à la fois la API Key et le API Secret, cliquez sur "GENERATE"';
Expand Down Expand Up @@ -94,9 +94,12 @@
$_['entry_title'] = 'Titre du paiement';
$_['entry_button_title'] = 'Titre du bouton de paiement';
$_['entry_authorization_mode'] = 'Mode d\'autorisation';
$_['entry_group_cards'] = 'Cartes de groupe';
$_['entry_forced_tokenization'] = 'Tokenisation forcée';
$_['entry_tds_status'] = 'Statut 3DS';
$_['entry_challenge_indicator'] = 'Indicateur de défi 3DS';
$_['entry_exemption_request'] = 'Demande d\'exemption 3DS';
$_['entry_group_cards'] = 'Cartes de groupe';
$_['entry_template'] = 'Nom du fichier modèle';
$_['entry_debug'] = 'Journalisation du débogage';
$_['entry_total'] = 'Total';
$_['entry_geo_zone'] = 'Zone géographique';
Expand All @@ -115,6 +118,8 @@
// Help
$_['help_webhook_url'] = 'Configurez des webhooks dans le Back Office Worldline pour appeler cette URL.';
$_['help_cron_url'] = 'Définissez un cron pour appeler cette URL.';
$_['help_template'] = 'Si vous utilisez un modèle personnalisé, veuillez saisir le nom ici. Si vide, la page de paiement standard sera affichée. L’apparence et la convivialité de la page de paiement peuvent être personnalisées sur le Back Office Worldline.';
$_['help_total'] = 'Le montant total que la commande doit atteindre avant que ce mode de paiement ne devienne actif.';
$_['help_company_name'] = 'Le nom de votre société.';
$_['help_message'] = 'Veuillez expliquer comment notre plugin de paiement peut être encore amélioré.';

Expand All @@ -132,11 +137,10 @@

// Button
$_['button_save'] = 'Sauvegarder';
$_['button_back'] = 'Dos';
$_['button_sign_up'] = 'Créer un compte / S\'inscrire';
$_['button_contact_us'] = 'Contactez-nous';
$_['button_reset_api_endpoint'] = 'Réinitialiser API Endpoint';
$_['button_copy_url'] = 'Copier dans le presse-papiers';
$_['button_copy_url'] = 'Copier l\'URL dans le presse-papiers';
$_['button_filter'] = 'Filtrer';
$_['button_send_suggest'] = 'Envoyer';
$_['button_capture'] = 'Capturer';
Expand Down Expand Up @@ -164,5 +168,6 @@
$_['error_api_secret_test'] = 'Test API Secret est incorrect!';
$_['error_webhook_key_test'] = 'Test Webhook Key est incorrect!';
$_['error_webhook_secret_test'] = 'Test Webhook Secret est incorrect!';
$_['error_template'] = 'Le nom du fichier modèle est incorrect! Il doit avoir l\'extension .htm, .html ou .dhtml!';
$_['error_company_name'] = 'Le nom de l’entreprise doit comporter entre 3 et 32 caractères!';
$_['error_message'] = 'Le message doit comporter entre 20 et 1000 caractères!';
13 changes: 9 additions & 4 deletions admin/language/it-it/payment/worldline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$_['text_tab_advanced'] = 'Impostazioni avanzate';
$_['text_tab_order_status'] = 'Lo stato dell\'ordine';
$_['text_tab_transaction'] = 'Transazioni';
$_['text_tab_suggest'] = 'Suggerisci una nuova funzionalità';
$_['text_tab_suggest'] = 'Contattaci';
$_['text_live'] = 'Vivere';
$_['text_test'] = 'Test';
$_['text_api_credential_alert'] = 'Per recuperare la API Key e l\'API Secret nel tuo PSPID, segui questi passaggi:<br />1) Accedi al Back Office<br />2) Vai a Configuration > Technical information > Ingenico Direct Settings > Direct API Key<br / >3) Se non hai ancora configurato nulla, la schermata mostra "No API credentials found". Per creare sia API Key che API Secret clicca su "GENERATE"';
Expand Down Expand Up @@ -94,9 +94,12 @@
$_['entry_title'] = 'Titolo di pagamento';
$_['entry_button_title'] = 'Titolo del pulsante di pagamento';
$_['entry_authorization_mode'] = 'Modalità di autorizzazione';
$_['entry_group_cards'] = 'Carte di gruppo';
$_['entry_forced_tokenization'] = 'Tokenizzazione forzata';
$_['entry_tds_status'] = 'Stato 3DS';
$_['entry_challenge_indicator'] = 'Indicatore di sfida 3DS';
$_['entry_exemption_request'] = 'Richiesta di esenzione 3DS';
$_['entry_group_cards'] = 'Carte di gruppo';
$_['entry_template'] = 'Nome file modello';
$_['entry_debug'] = 'Registrazione di debug';
$_['entry_total'] = 'Totale';
$_['entry_geo_zone'] = 'Zona geografica';
Expand All @@ -115,6 +118,8 @@
// Help
$_['help_webhook_url'] = 'Imposta i webhook nel Back Office di Worldline per chiamare questo URL.';
$_['help_cron_url'] = 'Imposta un cron per chiamare questo URL.';
$_['help_template'] = 'Se stai utilizzando un modello personalizzato, inserisci il nome qui. Se vuoto, verrà visualizzata la pagina di pagamento standard. L\'aspetto della pagina di pagamento può essere personalizzato sul Back Office di Worldline.';
$_['help_total'] = 'Il totale che deve essere raggiunto per abilitare questo metodo di pagamento.';
$_['help_company_name'] = 'Il nome della tua azienda.';
$_['help_message'] = 'Spiega come il nostro plugin di pagamento può essere ulteriormente migliorato.';

Expand All @@ -132,11 +137,10 @@

// Button
$_['button_save'] = 'Salva';
$_['button_back'] = 'Indietro';
$_['button_sign_up'] = 'Crea un account/Registrati';
$_['button_contact_us'] = 'Contattaci';
$_['button_reset_api_endpoint'] = 'Reimposta API Endpoint';
$_['button_copy_url'] = 'Copia negli appunti';
$_['button_copy_url'] = 'Copia l\'URL negli appunti';
$_['button_filter'] = 'Filtra';
$_['button_send_suggest'] = 'Invia';
$_['button_capture'] = 'Catturare';
Expand Down Expand Up @@ -164,5 +168,6 @@
$_['error_api_secret_test'] = 'Test API Secret non è corretto!';
$_['error_webhook_key_test'] = 'Test Webhook Key non è corretto!';
$_['error_webhook_secret_test'] = 'Test Webhook Secret non è corretto!';
$_['error_template'] = 'Il nome del file modello non è corretto! Deve avere l\'estensione .htm, .html o .dhtml!';
$_['error_company_name'] = 'Il nome dell\'azienda deve contenere da 3 a 32 caratteri!';
$_['error_message'] = 'Il messaggio deve contenere tra 20 e 1000 caratteri!';
Loading

0 comments on commit ddb6cbe

Please sign in to comment.