Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ First, review the technical specification:
**Phase 5: Advanced Features**
- Webhook implementation
- 3DS authentication handling
- Recurring payment setup (mandates)
- Recurring payment setup (SetupMandate flow)
- Recurring payment processing (RepeatPayment flow)
- Multi-step payment flows

**Phase 6: Production Readiness**
Expand Down Expand Up @@ -419,15 +420,17 @@ impl IncomingWebhook for {{ConnectorName}} {
- [ ] Test 3DS scenarios

#### Step 5.3: Recurring Payments
**Objective**: Implement mandate setup for recurring payments
**Objective**: Implement mandate setup and recurring payment processing

**Condition**: If connector supports recurring payments

**Tasks:**
- [ ] Implement SetupMandate flow
- [ ] Handle mandate creation
- [ ] Process subsequent payments
- [ ] Test recurring scenarios
- [ ] Implement SetupMandate flow for mandate creation
- [ ] Implement RepeatPayment flow for processing recurring payments
- [ ] Handle mandate reference storage and retrieval
- [ ] Process subsequent payments using stored mandates
- [ ] Test mandate setup scenarios
- [ ] Test repeat payment scenarios

#### Step 5.4: Multi-Step Payment Flows
**Objective**: Implement complex payment flows
Expand Down
3 changes: 3 additions & 0 deletions rulesbook/codegen/guides/connector_integration_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Before starting, determine your current implementation state:
- **CreateOrder**: Multi-step payment initiation
- **CreateSessionToken**: Secure session management
- **SetupMandate**: Recurring payment setup
- **RepeatPayment**: Process recurring payments using stored mandates
- **DefendDispute**: Handle chargeback disputes
- **SubmitEvidence**: Submit dispute evidence

Expand Down Expand Up @@ -168,6 +169,8 @@ impl TryFrom<&ConnectorAuthType> for ConnectorNameAuthType {
> - **Void Flow**: `guides/patterns/pattern_void.md`
> - **Psync Flow**: `guides/patterns/pattern_psync.md`
> - **Rsync Flow**: `guides/patterns/pattern_rsync.md`
> - **SetupMandate Flow**: `guides/patterns/pattern_setup_mandate.md`
> - **RepeatPayment Flow**: `guides/patterns/repeat_payment_flow_patterns.md`

## 🔄 Resuming Partial Implementation

Expand Down
11 changes: 7 additions & 4 deletions rulesbook/codegen/guides/patterns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ This directory contains comprehensive implementation patterns for each payment f
| [`pattern_authorize.md`](./pattern_authorize.md) | **Authorization** | ✅ Complete | Complete authorization flow patterns for any payment connector |
| [`pattern_capture.md`](./pattern_capture.md) | **Capture** | ✅ Complete | Comprehensive capture flow patterns and implementations |
| [`pattern_psync.md`](./pattern_psync.md) | **Payment Sync** | ✅ Complete | Payment status synchronization (Psync) flow patterns across 22 connectors |
| `pattern_void.md` | **Void/Cancel** | 🚧 Planned | Void payment authorization patterns |
| `pattern_refund.md` | **Refund** | 🚧 Planned | Full and partial refund flow patterns |
| `pattern_refund_sync.md` | **Refund Sync** | 🚧 Planned | Refund status synchronization patterns |
| `pattern_void.md` | **Void/Cancel** | ✅ Complete | Void payment authorization patterns |
| `pattern_refund.md` | **Refund** | ✅ Complete | Full and partial refund flow patterns |
| `pattern_rsync.md` | **Refund Sync** | ✅ Complete | Refund status synchronization patterns |

### Advanced Flows

| Pattern File | Flow Type | Status | Description |
|-------------|-----------|---------|-------------|
| `pattern_webhook.md` | **Webhooks** | 🚧 Planned | Webhook handling and signature verification patterns |
| `pattern_mandate.md` | **Recurring** | 🚧 Planned | Mandate setup and recurring payment patterns |
| [`pattern_setup_mandate.md`](./pattern_setup_mandate.md) | **SetupMandate** | ✅ Complete | Comprehensive SetupMandate flow patterns for recurring payments across 8 connectors |
| [`repeat_payment_flow_patterns.md`](./repeat_payment_flow_patterns.md) | **RepeatPayment** | ✅ Complete | Comprehensive RepeatPayment flow patterns for processing recurring payments using stored mandates across 7 connectors |
| `pattern_dispute.md` | **Disputes** | 🚧 Planned | Dispute handling and evidence submission patterns |
| `pattern_session.md` | **Session Token** | 🚧 Planned | Secure session management patterns |
| `pattern_order.md` | **Create Order** | 🚧 Planned | Multi-step payment initiation patterns |
Expand All @@ -44,6 +45,8 @@ This directory contains comprehensive implementation patterns for each payment f
# Use specific patterns for implementation
implement authorization flow for [ConnectorName] using pattern_authorize.md
add capture flow to [ConnectorName] using pattern_capture.md
implement setup mandate flow for [ConnectorName] using pattern_setup_mandate.md
add repeat payment flow to [ConnectorName] using repeat_payment_flow_patterns.md
implement webhooks for [ConnectorName] using pattern_webhook.md
```

Expand Down
Loading