JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q26659F
  • License ISC

A Simple integration for mercadopago

Package Exports

  • perfectpago
  • perfectpago/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (perfectpago) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Exemplo

import PerfectPago from 'perfectpago'
const MercadoPago = new PerfectPago({ accessToken: "your-access-token-here" })

// Pagamentos

MercadoPago.payments.create(options) // criar pagamentos
MercadoPago.payments.get(id) // obter pagamento
MercadoPago.payments.cancel(id) // cancelar pagamento
MercadoPago.payments.refund(id, amount) // reembolsar pagamento

// Clientes
MercadoPago.customers.create(options) // Criar cliente
MercadoPago.customers.get(id) // obter dados do cliente
MercadoPago.customers.fetch(email) // obter dados do cliente por email
MercadoPago.customers.update(id, options) // Atualizar dados do cliente

// Users

MercadoPago.users.create(options) // Criar usuário de testes

Descubra mais em: