feat: initial commit — asaas-checkout template white-label
Template genérico de checkout com ASAAS, parametrizado via env vars. Inclui fluxo completo: checkout → pedido → polling → webhook → admin. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
44
.env.example
Normal file
44
.env.example
Normal file
@@ -0,0 +1,44 @@
|
||||
# ============================================================
|
||||
# asaas-checkout — Configuração da instância
|
||||
# Copie este arquivo para .env.local e preencha os valores
|
||||
# ============================================================
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Identidade da aplicação
|
||||
# ------------------------------------------------------------
|
||||
NEXT_PUBLIC_APP_NAME="Meu Negócio"
|
||||
NEXT_PUBLIC_APP_LOGO_URL="" # URL da logo (deixar vazio para usar só o nome)
|
||||
NEXT_PUBLIC_APP_PRIMARY_COLOR="#1d4ed8"
|
||||
|
||||
# Redirect após pagamento confirmado (ex: link de agendamento, página de boas-vindas)
|
||||
NEXT_PUBLIC_AFTER_PAYMENT_REDIRECT="/"
|
||||
|
||||
# Suporte (exibido na página de produtos)
|
||||
NEXT_PUBLIC_SUPPORT_EMAIL=""
|
||||
NEXT_PUBLIC_SUPPORT_WHATSAPP="" # Formato: 5511999999999
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Admin
|
||||
# ------------------------------------------------------------
|
||||
NEXT_PUBLIC_ADMIN_USER="admin"
|
||||
NEXT_PUBLIC_ADMIN_PASSWORD="troque-esta-senha"
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# ASAAS — Gateway de pagamento
|
||||
# ------------------------------------------------------------
|
||||
ASAAS_API_KEY=""
|
||||
ASAAS_ENV="sandbox" # sandbox | production
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Supabase — Banco de dados
|
||||
# ------------------------------------------------------------
|
||||
NEXT_PUBLIC_SUPABASE_URL=""
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY=""
|
||||
SUPABASE_SERVICE_ROLE_KEY=""
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# n8n — Automações (opcional)
|
||||
# Deixar vazio para desativar notificações
|
||||
# ------------------------------------------------------------
|
||||
N8N_WEBHOOK_URL="" # Webhook de pagamento confirmado
|
||||
N8N_PIX_WEBHOOK_URL="" # Webhook de PIX gerado
|
||||
Reference in New Issue
Block a user