Añadir /send-gift (Enviar regalo) pagado por SumUp

Envía ítems de la tienda por correo al personaje de un amigo, pagado por
SumUp. lib/gift.ts (catálogo por categoría, priceCart con precios reales de
BD, sendGiftByMail vía SOAP .send items troceado a 12/correo + anti-inyección);
servicio send-gift en PAID_SERVICES; ruta dedicada /api/gift/checkout (origen
propio, destino existe, token de seguridad, carrito); SendGiftForm + página con
el diseño; i18n Paid[send-gift]; seed_giftitems.sql (4 cat, 8 ítems).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-14 13:49:56 +00:00
parent 671632a6a0
commit 1a2d40ee9c
8 changed files with 594 additions and 4 deletions
+6 -2
View File
@@ -341,7 +341,11 @@
"destination": "Destination account",
"success": "Character {name} has been transferred to the destination account."
},
"alreadyProcessed": "Your payment is confirmed and the reward was already delivered."
"alreadyProcessed": "Your payment is confirmed and the reward was already delivered.",
"send-gift": {
"title": "Send gift",
"success": "The gift has been mailed to character {name}."
}
},
"SecurityToken": {
"title": "Security token",
@@ -690,4 +694,4 @@
"title": "Page not found",
"message": "It looks like the page you are looking for doesn't exist or isn't available."
}
}
}