Socket
Socket
Sign inDemoInstall

@hmcts/ccpay-payments-list

Package Overview
Dependencies
0
Maintainers
16
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hmcts/ccpay-payments-list

A web component for services to display payments returned from ccpay into a html table


Version published
Weekly downloads
3
increased by200%
Maintainers
16
Created
Weekly downloads
 

Readme

Source

ccpay-payments-list

HTML5 Web component to display lists of payments

How to install

Node.js / Angular

  1. RUN npm i @hmcts/ccpay-payments-list OR ADD this dependency "@hmcts/ccpay-payments-list": "^1.0.0" to package.json
  2. modify your build process so it copies the following files to a location where they are be visible on the browswer:
  • payments.js
  • imports/webcomponents-bundle.js
  • imports/json2html.js

Check the example on the demo folder

Vanilla

Download and copy the following files into your project:

  • payments.js
  • imports/webcomponents-bundle.js
  • imports/json2html.js

Check the example on the demo folder

How to use

  • Import the 3 scripts from the locations they are visible. Example:

<script src="../imports/webcomponents-bundle.js"> </script>

<script src="../imports/json2html.js"> </script>

<script src="../payments.js" defer> </script>

  • Declare the template

<template id="payments-list"></template>

  • Place the component where you want to be rendered

<payments-list data='jsonDataAsItComesFromTheService'></payments-list>

In the data attribute pass the body response received from the payments by case endpoint

FAQs

Last updated on 16 May 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc