Skip to content

Commit

Permalink
Merge pull request #157 from xendit/chore/remove-payment-method-on-ur…
Browse files Browse the repository at this point in the history
…l-js

Chore remove payment_method on url
  • Loading branch information
andykim authored Jan 5, 2023
2 parents 74cdb22 + cc1dd45 commit 3e3025a
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=Alfamart'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/atome.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/bcava.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=BCA'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/bjbva.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/bniva.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=BNI'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/briva.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/bsiva.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/dana.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=DD_BRI'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=DD_RCBC'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/gcash.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/lbc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/ovo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=Permata'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/qris.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build('xendit/checkout/invoice?preferred_method=QRIS'));
window.location.replace(url.build('xendit/checkout/invoice'));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define(
},

afterPlaceOrder: function () {
window.location.replace(url.build(`xendit/checkout/invoice?preferred_method=${self.getMethod()}`));
window.location.replace(url.build(`xendit/checkout/invoice`));
},

validate: function() {
Expand Down

0 comments on commit 3e3025a

Please sign in to comment.