New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pushinpay

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pushinpay

Pushinpay é uma biblioteca simples e eficiente para processar pagamentos via PIX no Brasil. Projetada com TypeScript, ela oferece uma integração fácil e segura com gateways de pagamento, permitindo que você crie, gerencie e acompanhe transações PIX direta

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

Pushinpay

Pushinpay é uma biblioteca para integrar pagamentos PIX de forma simples e eficiente, com suporte para cobranças, transferências e reembolsos.

Instalação

$ npm install pushinpay

Importar e Autenticar

import { Pushinpay } from "pushinpay";

const pushinpay = new Pushinpay({ token: "SEU_TOKEN", sandbox: false });

Criar Pagamento PIX

pushinpay.pix.create({
  value: 100, // Valor da cobrança (INT)

  // Parâmetros opcionais
  webhook_url: "https://meusite.com/webhook", // URL de notificação
  split_rules: [
    { 
      account_id: "9E0209A0-E1FA-4BE8-823B-119ECE83798A", // ID da conta
      value: 10 // Valor fixo em centavos
    }
     ]
});

Obter Status de um Pagamento

pushinpay.pix.status({
  id: "9C17B975-903F-44CB-BB70-E838F85DC228" // ID do pagamento
});

Reembolsar Pagamento

pushinpay.pix.refund({
  id: "9C17B975-903F-44CB-BB70-E838F85DC228" // ID do pagamento
});

Realizar Transferência PIX

pushinpay.pix.transfer({
  pix_key: "pushinpay@gmail.com", // Chave PIX
  pix_key_type: "email", // Tipo da chave: "evp" | "national_registration" | "phone" | "email"
  value: 100, // Valor da transferência
  webhook_url: "https://meusite.com/webhook" // URL de notificação
});

Obter Saldo Atual da Conta

pushinpay.account.balance();

Keywords

pushinpay

FAQs

Package last updated on 01 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts