confirming works, last address is now persisted, thank you page is up but not yet accessible
This commit is contained in:
20
front-ui/app/models/orderConfirmation.js
Normal file
20
front-ui/app/models/orderConfirmation.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var Backbone = require('backbone');
|
||||
var Globals = require('../globals');
|
||||
|
||||
var orderConfirmation = Backbone.Model.extend({
|
||||
|
||||
initialize: function() {
|
||||
$.ajaxPrefilter(
|
||||
function(options, originalOptions, jqXHR) {
|
||||
options.xhrFields = {
|
||||
withCredentials: true
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
url: Globals.ApiUrl + '/cart/confirmation',
|
||||
defaults: { }
|
||||
});
|
||||
|
||||
module.exports = orderConfirmation;
|
||||
Reference in New Issue
Block a user