Skip to content

Commit

Permalink
Skip success screen (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilco375 authored Sep 1, 2022
1 parent a93020d commit 86a3e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/packs/order_screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ document.addEventListener('turbolinks:load', () => {
let affilateKey = element.dataset.sumupKey;
let callback = element.dataset.sumupCallback;
if (this.isIos) {
return `sumupmerchant://pay/1.0?affiliate-key=${affilateKey}&amount=${this.orderTotal}&currency=EUR&title=Bestelling SOFIA&callbacksuccess=${callback}&callbackfail=${callback}`;
return `sumupmerchant://pay/1.0?affiliate-key=${affilateKey}&amount=${this.orderTotal}&currency=EUR&title=Bestelling SOFIA&skip-screen-success=true&callbacksuccess=${callback}&callbackfail=${callback}`;
} else {
return `sumupmerchant://pay/1.0?affiliate-key=${affilateKey}&total=${this.orderTotal}&currency=EUR&title=Bestelling SOFIA&callback=${callback}`;
return `sumupmerchant://pay/1.0?affiliate-key=${affilateKey}&total=${this.orderTotal}&currency=EUR&title=Bestelling SOFIA&skip-screen-success=true&callback=${callback}`;
}
},

Expand Down

0 comments on commit 86a3e22

Please sign in to comment.