0.1.3 • Published 4 years ago

@pedidopago/pp2 v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago