lunarpay-react

v0.2.6
Integrate Lunar Pay protocols into your own frontend with just a few lines of code.
react lunar lunarpay crypto payment payment-gateway lunar-react lunarpay-react

Lunar Pay React

Integrate LunarPay into your frontend easily.

Installation

Install the package with npm or yarn with either of the following commands.

npm i lunarpay-react
yarn add lunarpay-react

Make sure to import the LunarPay component from the library after it is installed

import LunarPay from 'lunarpay-react'

Usage

import './App.css'

import LunarPay from 'lunarpay-react'

import React from 'react'

function App() {
  return (
    <div className='App'>
      <LunarPay
        productId='PgpaIh55jUWSaptdh0arGfus' // Get the Product ID from the Lunar Dashboard
        email='[email protected]' // Email of the customer
      />
    </div>
  )
}

export default App

Options

productId (required) Get the product ID from the Lunar Dashboard.

email (required) Email of the customer.

License

MIT

npm i lunarpay-react

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 1/2/2022

Downloads

Maintainers