From 4f37596acda7d3891fdff200ac5ebb4b7024e2ab Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 31 Oct 2023 16:20:03 +0100 Subject: [PATCH] Remove the restart argument for the start-pay-actions API This is no longer used in the backend and doesn't make any difference. Since it's not used anywhere else we can just remove it. --- src/dbp-mono-processpayment.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/dbp-mono-processpayment.js b/src/dbp-mono-processpayment.js index d59c66f..12f1e29 100644 --- a/src/dbp-mono-processpayment.js +++ b/src/dbp-mono-processpayment.js @@ -53,7 +53,6 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) { // restart this.showRestart = false; - this.restart = false; this.modalIsVisible = false; this.showPending = false; @@ -158,7 +157,6 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) { // restart showRestart: {type: Boolean, attribute: false}, - restart: {type: Boolean, attribute: false}, modalIsVisible: {type: Boolean, attribute: false}, showPending: {type: Boolean, attribute: false}, @@ -342,7 +340,6 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) { case 'prepared': this.showPending = false; this.showRestart = false; - this.restart = true; this.showPaymentMethods = true; this.showCompleteConfirmation = false; break; @@ -351,21 +348,18 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) { case 'started': this.showPending = false; this.showRestart = true; - this.restart = true; this.showPaymentMethods = true; this.showCompleteConfirmation = false; break; case 'pending': this.showPending = true; this.showRestart = false; - this.restart = false; this.showPaymentMethods = false; this.showCompleteConfirmation = false; break; case 'completed': this.showPending = false; this.showRestart = false; - this.restart = false; this.showPaymentMethods = false; this.showCompleteConfirmation = true; break; @@ -515,7 +509,6 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) { this.selectedPaymentMethod, returnUrl, this.consent, - this.restart, ).then((responseData) => { responseData .clone() @@ -605,13 +598,12 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) { }); } - async sendPostStartPayActionRequest(identifier, paymentMethod, pspReturnUrl, consent, restart) { + async sendPostStartPayActionRequest(identifier, paymentMethod, pspReturnUrl, consent) { let body = { identifier: identifier, paymentMethod: paymentMethod, pspReturnUrl: pspReturnUrl, consent: consent, - restart: restart, }; const options = {