Skip to main content

Gateway Providers

The system supports three payment providers, each with specific capabilities.

Available Providers

Pagar.me (PAGARME)

  • Purpose: Credit card processing
  • Supported methods: Credit card only
  • API: Pagar.me v5 (https://api.pagar.me/core/v5)
  • Environment: Sandbox and Production

Required credentials:

FieldRequiredDescription
secretKeyYesAPI secret key
publicKeyNoPublic key for tokenization
merchantIdNoMerchant ID
accountIdNoAccount ID

Features:

  • Card tokenization (client → token → gateway)
  • Authorization and capture
  • Full and partial refunds
  • Customer and card management on the gateway

Kobana (KOBANA)

  • Purpose: Brazilian payment methods
  • Supported methods: Boleto and PIX
  • Environment: Sandbox and Production

Required credentials:

FieldRequiredDescription
accessTokenYesAPI access token
billetAccountIdNoBoleto account ID
pixAccountUidNoPIX account UID (required for PIX)
webhookSecretNoSecret for webhook validation

Features:

  • Boleto issuance with barcode and PDF
  • PIX QR Code generation (EMV)
  • Charge cancellation
  • Webhooks for payment confirmation

Mock (MOCK)

  • Purpose: Development and testing
  • Supported methods: Card, Boleto, and PIX
  • Credentials: None required
  • Activation: Automatic upon creation

Simulates all payment types for the development environment.

Payment Methods by Provider

MethodPagar.meKobanaMock
Credit cardYes-Yes
Boleto-YesYes
PIX-YesYes
Bank transfer---

Credential Security

  • All credentials are encrypted at rest using AES-256-GCM
  • Credentials are decrypted only at the time of the API call
  • API responses mask credentials (format: ****[last 4])
  • Sensitive fields are filtered from logs