How uddoktapay/laravelsdk works
Main Components
a. Client Application Layer:
• Routes integration points (checkout, verify, cancel, ipn, refund)
b. SDK Core Layer (Middle):
• Central UddoktaPay class component
• Request handlers (CheckoutRequest, RefundRequest)
• Response handlers (CheckoutResponse, RefundResponse, VerifyResponse)
• HTTP Client component
c. External Service Layer:
• UddoktaPay API Gateway
• Payment Processing Systems
Component Relationships
Client App → SDK Core → UddoktaPay API
• ↓
• Response Handling
• ↓
Client App ← SDK Core ← UddoktaPay API
Detailed Component Breakdown
a. SDK Core (UddoktaPay.php):
• Configuration management
• API key handling
• Main interface methods (checkout, verify, refund)
b. Request/Response Flow:
• Request formation (Concerns/Normalize.php)
• HTTP client handling (Http/Client.php)
• Response parsing
• Exception handling (UddoktaPayException)
c. Integration Points:
• Webhook handling (IPN)
• Verification endpoints
• Refund processing
• Checkout flow
Technical Details to Note
Small notes about:
• API URL configuration
• Authentication mechanism
• Response status handling
• Error propagation
Refund Processing Flow
Remember to include:
• Entry points from the client application
• SDK core processing
• External API communication
• Response handling back to the client
• Error handling paths