Skip to content

Commit

Permalink
Remove the restart argument for the start-pay-actions API
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lazka committed Oct 31, 2023
1 parent 55558e8 commit 4f37596
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/dbp-mono-processpayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) {

// restart
this.showRestart = false;
this.restart = false;
this.modalIsVisible = false;
this.showPending = false;

Expand Down Expand Up @@ -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},

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -515,7 +509,6 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) {
this.selectedPaymentMethod,
returnUrl,
this.consent,
this.restart,
).then((responseData) => {
responseData
.clone()
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 4f37596

Please sign in to comment.