![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@prestashopcorp/billing-cdc
Advanced tools
A component allowing easy integration of Prestashop Billing component, to create SaaS module.
This library allows you to display a form to register your customers subscriptions.
<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.PsBilling({context}).render("#ps-billing")
</script>
</body>
npm i @prestashopcorp/billing-cdc
Or
yarn add @prestashopcorp/billing-cdc
// In js file
import { PsBilling } from '@prestashopcorp/billing-cdc';
PsBilling({context}).render("#ps-billing")
// In html file
<body>
<div id="ps-billing"></div>
</body>
Here is the data you need to pass through the context variable
Attribut | Type | Value | Example |
---|---|---|---|
emailSupport | string | Email to contact support (required) | admin@prestashop.com |
shopUuid | string | Uuid of your shop (required) | Mn6ou86uATRBrtYjFUnkZf6Fc5e2 |
moduleName | string | Technical name of your module (required) | my-module |
accountApi | string | API to retrieve your Prestashop Account. You can get it dynamically in window.contextPsAccounts.adminAjaxLink (required) | https://my-shop.com/ps-admin/index.php?controller=AdminAjaxPsAccounts&ajax=1&token=1247657657657 |
import { PsBilling } from '@prestashopcorp/billing-cdc';
const PsBillingComponent = PsBilling.driver('vue', Vue);
Vue.component('app', {
data: function () {
return {
context: {}
}
},
template: '<div><ps-billing :context="context"/></div>' ,
components: {
'ps-billing': PsBillingComponent
}
});
var vm = new Vue({
el: '#container'
});
FAQs
Cross domain component for the billing UI app
The npm package @prestashopcorp/billing-cdc receives a total of 468 weekly downloads. As such, @prestashopcorp/billing-cdc popularity was classified as not popular.
We found that @prestashopcorp/billing-cdc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.