Prestashop Billing Component
A component allowing easy integration of Prestashop Billing component, to create SaaS module.
Use the Prestashop Billing Component
This library allows you to display a form to register your customers subscriptions.
Using the CDN
<body>
<div id="ps-billing"></div>
<script src="https://storage.googleapis.com/prestashop-vuejs-cdn/billing/0.0.1/ps-billing.min.js"></script>
<script>
const context = {
// see bellow information about context
}
psBilling.Customer({context}).render("#ps-billing")
</script>
</body>
Contexte
Here is the data you need to pass through the context variable
Frameworks
Use it with Vue2
import { PsBillingCDC } from '@prestashopcorp/billing-cdc/dist/bundle.umd';
Vue.component('app', {
data: function () {
return {
context: {}
}
},
template: '<div><ps-billing :context="context"/></div>' ,
components: {
'ps-billing': PsBillingCDC.driver('vue', Vue)
}
});
var vm = new Vue({
el: '#container'
});