Skip to content

Commit 28cf93d

Browse files
committed
MAGETWO-37570: Unable to place order on frontend using secure urls
1 parent c81cc69 commit 28cf93d

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/view

1 file changed

+2
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/payment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ define(
8383
return info;
8484
},
8585
getPaymentMethodCallbacks: function() {
86-
var callbacks = [this.getActiveMethodView().afterSave];
86+
var callbacks = [this.getActiveMethodView().afterSave.bind(this.getActiveMethodView())];
8787

8888
_.each(this.getAdditionalMethods(), function(elem) {
8989
if (elem.isActive()) {
90-
callbacks = _.union(callbacks, [elem.afterSave]);
90+
callbacks = _.union(callbacks, [elem.afterSave.bind(elem)]);
9191
}
9292
});
9393

0 commit comments

Comments
 (0)