What problem does it solve?
This skill prevents payment failures and user confusion by enforcing a critical business rule: the user's login email must match their PIX key email for payment processing. It identifies missing backend validation and provides solutions.
Core Features & Use Cases
- Email Matching Enforcement: Ensures the PIX key email is identical to the user's login email for
email type PIX keys.
- Missing Validation Detection: Highlights where current backend middleware (
CheckPixKey.php) lacks this crucial email matching logic.
- Use Case: When a user attempts to redeem points or make a donation, this skill ensures their PIX email is correctly configured, preventing "Payment failed - email mismatch" errors and reducing support tickets.
Quick Start
Example: Proposed backend validation logic (PHP)
if ($user->pix_key_type === 'email' && $user->pix_key !== $user->email) {
return response()->json([
'success' => false,
'message' => 'A chave PIX email deve ser igual ao email de login da conta.',
], 422);
}