@pedidopago/pp2

0.1.3 • Public • Published

pp2

Pedido Pago 2 JS API

NPM JavaScript Style Guide

Install

npm install --save @pedidopago/pp2

Usage (JS lib)

import pp from '@pedidopago/pp2'

async function example() {
const result = await pp.store.getInfo();
  console.log(result.store_id);
}
example();

Usage (component)

import React, { Component } from 'react'

import MyComponent from '@pedidopago/pp2'
import 'pp2/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

To get started, in one tab, run: $ cd pp2 && npm start

And in another tab, run the create-react-app dev server: $ cd pp2/example && npm start

Then go to localhost:3000

License

MIT © pedidopago

Readme

Keywords

none

Package Sidebar

Install

npm i @pedidopago/pp2

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

30.8 kB

Total Files

10

Last publish

Collaborators

  • whiteangel1331
  • jonathassx
  • _gabs