// @module AVT.StripePaymentGateway.StripePaymentGateway
define('AVT.StripePaymentGateway.StripePaymentGateway.View'
, [
'Wizard.Module'
, 'avt_stripepaymentgateway_stripepaymentgateway.tpl'
, 'Utils'
, 'Backbone'
, 'jQuery'
, 'underscore'
]
, function (
WizardModule
, avt_stripepaymentgateway_stripepaymentgateway_tpl
, Utils
, Backbone
, jQuery
, _
)
{
'use strict';
// @class AVT.StripePaymentGateway.StripePaymentGateway.View @extends Backbone.View
return WizardModule.extend({
template: avt_stripepaymentgateway_stripepaymentgateway_tpl
, initialize: function (options) {
/* Uncomment to test backend communication with an example service
(you'll need to deploy and activate the extension first)
*/
this.message = '';
// var service_url = Utils.getAbsoluteUrl(getExtensionAssetsPath('services/StripePaymentGateway.Service.ss'));
// jQuery.get(service_url)
// .then((result) => {
// this.message = result;
// this.render();
// });
}
, events: {
}
, bindings: {
}
, childViews: {
}
//@method getContext @return AVT.StripePaymentGateway.StripePaymentGateway.View.Context
, getContext: function getContext()
{
debugger;
//@class AVT.StripePaymentGateway.StripePaymentGateway.View.Context
this.message = "test"
return {
message: this.message
};
}
});
});