com-example-strategy-PaymentStrategy · git:20260820.1cddfe2 · 2026-08-20 · sha256 4cc1f9e5c82c6272

com-example-strategy-PaymentStrategy git:20260820.1cddfe2A

Immutable. This exact content never changes and is served at /api/v1/blob/4cc1f9e5c82c6272.

---
description: "AI rules for com.example.strategy.PaymentStrategy"
globs: ["**/PaymentStrategy.java"]
alwaysApply: false
---

<!-- VIBETAGS-START -->
# Rules for PaymentStrategy

## Context & Focus
- **Focus**: Follow the Strategy pattern strictly. Each payment method should be a separate strategy class implementing this interface.
- **Avoid**: Monolithic if-else chains, hard-coded payment logic, single class handling all payment types

### Rules for method executePayment
- **Instruction**: Implement payment execution specific to the payment method (credit card, PayPal, cryptocurrency, etc.). Return transaction ID on success.

### Rules for method validatePaymentMethod
- **Instruction**: Validate payment method specific data (card numbers, email addresses, wallet addresses, etc.). Return true if valid, false otherwise.
<!-- VIBETAGS-END -->