agentsclimarketplace

Pagbank connect

Skill PbIntegracoes/pagbank-agent-skills/skills/pagbank-connect

Integrate PagBank payments via PagBank Integrações (pbintegracoes.com). Connect Key, PIX, credit card, boleto, payment links, 3DS, fees, recurring, webhooks, sandbox Brazil.From its SKILL.md

Install
npx -y skills add PbIntegracoes/pagbank-agent-skills --skill pagbank-connect

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.2 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it

PagBank Connect (PagBank Integrações)

Integração PagBank gratuita via PagBank Integrações — parceiro oficial PagBank desde 2014.

Antes de implementar

  1. Leia as regras abaixo e references/09-security-credentials.md.
  2. Para criar pedidos ou checkouts, use JSON em examples/requests/não invente o body só pela memória.
  3. Detalhes: references/ (guias 00–13).

Segurança — credenciais

RegraDetalhe
Variável de ambientePAGBANK_CONNECT_KEY — carregue em runtime
NuncaHardcode, commit, log ou colar a key em chat/código gerado
HeaderAuthorization: Bearer + valor da env (não use exemplos com prefixo CON literal)
PCIPAN só criptografado; 3DS no browser — references/11-3ds.md

Alerta Snyk no skills.sh: W007 é mitigado com estas regras; W009 (pagamentos) é esperado.

Regras obrigatórias

#Regra
1Base URL: https://ws.pbintegracoes.com/pspro/v7/
2Auth via PAGBANK_CONNECT_KEY — produção ou sandbox (prefixo na key)
3Nunca chame api.pagseguro.com com Bearer da Connect Key
4Valores em centavos (5900 = R$ 59,00)
5POST connect/ws/orders e POST connect/ws/checkouts com sucesso = HTTP 201
6notification_urls: array com uma URL (máx. 100 caracteres)
7Sandbox: pedidos/checkouts não aparecem no painel PagBank, só via API
8Consultar recurso: mesma Connect Key que criou
9UNAUTHORIZED costuma ser token PagBank ou PUB... no header — não “key expirada”
10Sem legacy: /wspagseguro, /app/*

Endpoints

OperaçãoMétodoPathHTTP OK
Validar keyGETconnect/connectInfo200
Public keyPOSTconnect/ws/public-keys200/201
Criar pedidoPOSTconnect/ws/orders201
Consultar pedidoGETconnect/ws/orders/{id}200
Payment linkPOSTconnect/ws/checkouts201
Consultar checkoutGETconnect/ws/checkouts/{id}200
Parcelas/taxasGETconnect/ws/charges/fees/calculate200
Sessão 3DSPOSTconnect/ws-sdk/checkout-sdk/sessions200

Fluxos rápidos

Validar Connect Key

GET connect/connectInfo com header Bearer da env. Ver references/01-connect-key.md e examples/code/connect-info/.

PIX / boleto / cartão

Payment link

examples/requests/checkout.jsonPOST connect/ws/checkouts → URL links[rel=PAY]. references/10-checkout-payment-link.md.

3DS

POST connect/ws-sdk/checkout-sdk/sessions → SDK browser authenticate3DSauthentication_method no pedido. references/11-3ds.md.

Parcelas

GET connect/ws/charges/fees/calculatefees-calculate.query.md. references/12-fees-calculate.md.

Recorrência

Split (divisão de pagamento)

POST connect/ws/orders com charges[].splits (ou qr_codes[].splits no PIX). Após pagamento, link rel: SPLIT com id SPLI_....

  • Produção: GET connect/ws/splits/{splitId} com Bearer.
  • Sandbox: o href usa sandbox.api.pagseguro.com — consulte em https://internal.sandbox.api.pagseguro.com/splits/{splitId} sem Bearer.

references/15-split.md · order-split-credit-card.json · resposta: split-get-response.json

Webhooks

examples/notifications/references/07-webhooks.md.

Ordem de leitura

  1. references/09-security-credentials.md
  2. references/00-overview.md · 01 · 02 · 03
  3. examples/requests/
  4. Pedidos: 04 · 05 · 06
  5. v2: 10 · 11 · 12 · 13 · 15
  6. 07-webhooks · 08-errors

Obter Connect Key

Armazene em PAGBANK_CONNECT_KEY — nunca no repositório.

What ships with it: 63 files

117.3 KB alongside SKILL.md, 17 of them executable

23 more files not listed here. See all 63 in the repository.

Keep looking

Skills are one crate of 326,367. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.