@pedidopago/pp2
v0.1.3
Published
Pedido Pago 2 JS API
Downloads
3
Readme
pp2
Pedido Pago 2 JS API
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