ourpass-checkout-react-button-v1

1.0.2 • Public • Published

Pass Checkout button for 1-click checkout

NPM JavaScript Style Guide

Install

npm i ourpass-checkout-react-button-v1

Usage

import React, { Component } from 'react'

import { PassButton } from 'ourpass-checkout-react-button-v1'
import 'ourpass-checkout-react-button-v1/dist/index.css'

const checkoutPayload = {...}
const customLabel = 'Pay Now ✨'

class Example extends Component {
  render() {
    return <PassButton data={checkoutPayload} label={customLabel} />
  }
}

Payload Example

  payload: {
      url: 'jumia.com.ng',
      email: 'bayoopesanya@gmail.com',
      items: [
        {
          src: 'https://raw.githubusercontent.com/Cheetah-Speed-Technology/website_dstore/master/Cap-front1.png',
          amount: '10',
          url: 'jumia.com.ng',
          name:'Cap',
          email: 'bayoopesanya@gmail.com',
          qty:'1',
          description:'Great Pass Cap',
        },
        {
          src: 'https://raw.githubusercontent.com/Cheetah-Speed-Technology/website_dstore/master/Cap-front1.png',
          amount: '10',
          url: 'jumia.com.ng',
          name:'Cap',
          email: 'bayoopesanya@gmail.com',
          qty:'1',
          description:'Great Pass Cap',
        },
      ],
      key: 'pass_sec_test_2WEzJfgg4mpbY4XkBaibd9ZnERo6bHBP'
  }

License

MIT © WisdomEkpot

Readme

Keywords

none

Package Sidebar

Install

npm i ourpass-checkout-react-button-v1

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

32.5 kB

Total Files

7

Last publish

Collaborators

  • parkcrowdy_nigeria_limited