1. Go to this page and download the library: Download sistem-atc/bank-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use SistemAtc\Banks\Banks\Bradesco\Bradesco;
use SistemAtc\Banks\Banks\Inter\Inter;
use SistemAtc\Banks\Banks\Itau\Itau;
Itau::make()->boletos($integration)->emissao()->emitir([...]);
Itau::make()->recebimentosPix($integration)->cobImediata()->criar([...]);
Bradesco::make()->cobranca($integration)->registrar([...]);
Bradesco::make()->debitoVeicular($integration)->sp();
Inter::make()->cobranca($integration)->boletos()->emitir([...]);
Inter::make()->recebimentosPix($integration)->cob()->criar([...]);
use SistemAtc\Banks\Banks\Inter\Enums\TipoWebhook;
$webhooks = Inter::make()->webhooks($i);
$webhooks->cadastrar(TipoWebhook::Cobranca); // cobrança paga/cancelada/expirada
$webhooks->cadastrar(TipoWebhook::PixRecebido, chavePix: '[email protected]'); // um por chave Pix
$webhooks->consultar(TipoWebhook::PixPagamento); // URL cadastrada ou null
$webhooks->sincronizar(desejados: ['cobranca', 'boleto-pagamento'], anteriores: ['pix-pagamento']);
$this->app->bind(WebhookIntegrationResolver::class, fn () => new class implements WebhookIntegrationResolver {
public function resolve(string $bank, string $integrationId): ?BankIntegration
{
return BankIntegration::query()->find($integrationId); // do banco certo e ativa
}
});
use SistemAtc\Banks\Gateways\Asaas\Asaas;
use SistemAtc\Banks\Gateways\Asaas\DTO\Request\Payment\CreatePaymentRequestDTO;
$cobranca = Asaas::make()->payment($integration)->createNewPayment(CreatePaymentRequestDTO::fromArray([
'customer' => 'cus_G7Dvo4iphUNk',
'billingType' => 'PIX',
'value' => 129.90,
'dueDate' => '2026-11-30',
]));
Asaas::make()->financialTransaction($integration); // extrato
Asaas::make()->transfer($integration); // TED / Pix de saída
use SistemAtc\Banks\Gateways\PagBrasil\PagBrasil;
// Pedidos — /api/order/* (cartão, débito, boleto, Pix). Entrada tipada
// (DTO\Request\*) ou, por compatibilidade, array com os nomes da doc.
$pedido = PagBrasil::make()->pedidos($i)->pix(new PixOrder(
order: 'PED-123', productName: 'Whey 900g', products: [new Product('WHEY-900', 129.9)],
customer: new Customer('José da Silva', '529.982.247-25', '[email protected]', '11999990000'),
address: new Address('Av. Paulista, 100', '01311-100', 'São Paulo', 'SP'),
amountBrl: 129.9, expirationMinutes: 30,
));
$pedido->pixCode; // copia-e-cola
PagBrasil::make()->pedidos($i)->consultar('PED-123'); // null se não existe
PagBrasil::make()->pedidos($i)->estornar(new Refund('PED-123', '129.90', new RefundPixKey(PixKeyType::Email, '[email protected]')));
// Link de Pagamento, Pix Automático, Payout
PagBrasil::make()->linkPagamento($i)->criar(['order' => 'PED-124', 'amount_brl' => '50.00'])->urlPayment;
PagBrasil::make()->pixAutomatico($i)->consultarRecorrencia($pixRecId);
PagBrasil::make()->payout($i)->enviar('91051605962', '150.00', 'Comissão');
// PagStream (assinaturas) — API REST v2 + as rotas que ainda são v1
PagBrasil::make()->pagStream($i)->assinaturas()->listar(['tax_id' => '12345678909']);
PagBrasil::make()->pagStream($i)->recorrencias()->pular('P17648804286', 'next');
// IPN / webhook — confere secret + HMAC e devolve a notificação tipada
$notificacao = PagBrasil::make()->webhook($i)->parse($request->all());
return response(WebhookVerifier::acknowledgement()); // "Received successfully …"
// Liquidação (CSV do Dashboard; não há API) — taxas por transação
$linhas = SettlementReport::parse(file_get_contents($csv));