File: //proc/self/cwd/nueva/modules/pmproductvideoreviews/views/templates/admin/accountsScript.tpl
{**
* rec.reviews
*
* @author Presta-Module.com <support@presta-module.com> - https://www.presta-module.com
* @copyright Presta-Module - https://www.presta-module.com
* @license see file: LICENSE.txt
*
* ____ __ __
* | _ \ | \/ |
* | |_) | | |\/| |
* | __/ | | | |
* |_| |_| |_|
*
*}
<script src="{$urlAccountsCdn|escape:'htmlall':'UTF-8'}" rel=preload></script>
<script src="{$urlBilling|escape:'htmlall':'UTF-8'}" rel=preload></script>
<script>
/*********************
* PrestaShop Account *
* *******************/
window?.psaccountsVue?.init();
// Check if Account is associated before displaying Billing component
if (window.psaccountsVue.isOnboardingCompleted() == true) {
/*********************
* PrestaShop Billing *
* *******************/
window.psBilling.initialize(window.psBillingContext.context, '#ps-billing', '#ps-modal', (type, data) => {
// Event hook listener
switch (type) {
// Hook triggered when PrestaShop Billing is initialized
case window.psBilling.EVENT_HOOK_TYPE.BILLING_INITIALIZED:
break;
// Hook triggered when the subscription is created or updated
case window.psBilling.EVENT_HOOK_TYPE.SUBSCRIPTION_UPDATED:
break;
// Hook triggered when the subscription is cancelled
case window.psBilling.EVENT_HOOK_TYPE.SUBSCRIPTION_CANCELLED:
break;
}
});
}
</script>