How arif98741/paystation-sdk works
Main Components
a) Client Application Layer:
• PHP application that uses this library
• Composer dependency management
b) Paystation Library Core:
• Main Paystation class as the central component
• Exception handling system
• Request handling system
c) External Payment Gateway:
• Paystation payment gateway service
• Various payment methods (MFS, credit cards)
Component Relationships
• Payment Initiation Flow
• Payment Verification Flow
• Error Handling Flow
[Component Layout]
• Client Application | --> | Paystation Library | --> | Payment Gateway |
• Composer managed | | Core Components: | | - Payment Processing |
• PHP application | | - Paystation Class | | - Transaction Handling |
• Request Handlers | | - MFS Integration |
• Exception Handlers | | - Card Processing |
• ^
• Configuration Layer |
• Merchant ID |
• Password |
Flow Indicators
a) Payment Flow:
• Payment initiation (payNow())
• Payment verification (verifyPayment())
• Response handling
b) Data Flow:
• Payment parameters
• Transaction verification data
• Response objects
Important Details
Key Methods:
• setPaymentParams()
• payNow()
• verifyPayment()
Exception Handling:
• PaystationException
• PaystationPaymentParameterException