Skip to content

Commit 124a2fd

Browse files
Merge pull request #29 from Dnreikronos/feat/subscribe-and-payment-execution-endpoints
Feat/subscribe and payment execution endpoints
2 parents 4d59956 + a93d3bc commit 124a2fd

17 files changed

Lines changed: 1752 additions & 137 deletions

File tree

API_ENDPOINTS.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,36 @@ Response: {
294294
295295
---
296296
297-
## 💳 Payments Management
297+
## 💳 Payment Flows
298+
299+
PattPay supports two payment flows:
300+
301+
1. **Recurring Subscriptions** - `POST /api/subscribe`
302+
2. **One-Time Payments** - `POST /api/payment-executions`
303+
304+
**📖 For detailed implementation guide, see [PAYMENT_FLOWS.md](./PAYMENT_FLOWS.md)**
305+
306+
### Quick Reference
307+
308+
**Recurring Subscription:**
309+
```http
310+
POST /api/subscribe (Public endpoint)
311+
```
312+
313+
**One-Time Payment:**
314+
```http
315+
POST /api/payment-executions (Public endpoint)
316+
```
317+
318+
**View Payment History (Merchant only):**
319+
```http
320+
GET /api/payment-executions (Authenticated)
321+
GET /api/payment-executions/:id (Authenticated)
322+
```
323+
324+
---
325+
326+
## 💳 Payments Management (Legacy)
298327
299328
### Payment Operations
300329

0 commit comments

Comments
 (0)