New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@prestashopcorp/billing-cdc

Package Overview
Dependencies
Maintainers
7
Versions
347
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prestashopcorp/billing-cdc

Cross domain component for the billing UI app

  • 0.0.5
  • npm
  • Socket score

Version published
Weekly downloads
572
decreased by-44.03%
Maintainers
7
Weekly downloads
 
Created
Source

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

AttributTypeValueExample
emailSupportstringEmail to contact support (required)admin@prestashop.com
shopUuidstringUuid of your shop (required)Mn6ou86uATRBrtYjFUnkZf6Fc5e2
moduleNamestringTechnical name of your module (required)my-module
accountApistringAPI 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

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'
});

FAQs

Package last updated on 24 Sep 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc