Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ourpayelements

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ourpayelements

JS/React library for MFE Demo widgets

latest
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

ourpayelements

JS/React library for MFE Demo widgets

Development

  • Clone repository
  • Install dependencies
cd mfe-demo-widget
npm install
  • Start development bundler
npm run dev
  • Start example web app
cd example/react OR cd example/js
npm i
npm run dev

Usage

Install as an NPM package (npm i ourpayelements) or import from CDN: https://www.unpkg.com/ourpayelements

React

import { DonationForm, DonationTable, DonationProvider } from "ourpayelements";

export default function App() {
    return (
        <DonationProvider appId={123}>
            <DonationForm />
            <DonationTable />
        </DonationProvider>
    );
}

JS

Example:

// Initialize JS factory
const elements = Ourpay.Elements(123);
elements.DonationForm.mount("#form-id", {
    defaultAmount: 100,
});
elements.DonationTable.mount("#table-id");

FAQs

Package last updated on 27 Apr 2023

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