feat(mp): add Mercado Pago reauthorization notice and status card components
- Implemented MpReauthNotice component to notify users when reauthorization is needed. - Created MpStatusCard component to display the current status of the Mercado Pago account. - Added utility functions and constants for handling Mercado Pago status and messages. - Introduced hooks for managing the connection and disconnection of Mercado Pago accounts. - Developed a disconnect confirmation modal for user actions. - Added tests for the new functionality and utility functions. - Defined schemas for Mercado Pago account status and callback reasons in shared package.
This commit is contained in:
@@ -22,6 +22,16 @@ x-backend-env: &backend-env
|
||||
EMAIL_SERVER_USER: ${EMAIL_SERVER_USER:-}
|
||||
EMAIL_SERVER_PASSWORD: ${EMAIL_SERVER_PASSWORD:-}
|
||||
EMAIL_FROM: "${EMAIL_FROM:-Gruperly <no-reply@gruperly.com>}"
|
||||
# Mercado Pago OAuth. Opcionales: sin credenciales, GET /mp/connect responde
|
||||
# 503 mp_not_configured y la app sigue funcionando (el paso es salteable).
|
||||
MP_CLIENT_ID: ${MP_CLIENT_ID:-}
|
||||
MP_CLIENT_SECRET: ${MP_CLIENT_SECRET:-}
|
||||
# Tiene que coincidir con la "Redirect URL" del panel de MP, character por
|
||||
# character. En produccion, HTTPS y la URL publica de la API.
|
||||
MP_REDIRECT_URI: ${MP_REDIRECT_URI:-}
|
||||
# Clave de 32 bytes en base64 (openssl rand -base64 32) para cifrar los tokens
|
||||
# en reposo. Sin ella, mp/callback falla al guardar la cuenta.
|
||||
TOKEN_ENCRYPTION_KEY: ${TOKEN_ENCRYPTION_KEY:-}
|
||||
|
||||
services:
|
||||
api:
|
||||
|
||||
Reference in New Issue
Block a user