Use Case : UC8 - Make Payment
- Author: Tugba Ilhan
- Date / Version: 09/06/2025 - v0.1
User roles
Role | Description |
---|---|
End User | Customer who proceeds to pay for their order |
Payment Gateway | External service provider (e.g., PayPal, Stripe) handling secure transactions |
Platform System | Coordinates payment process, sends data to gateway, verifies transaction |
Prerequisites / Conditions
-
User has items in cart and has proceeded to checkout
-
Delivery information is already provided.
-
A valid payment method is selected.
-
Platform is integrated with selected payment gateway(s).
Use Case Diagram
Description of use case – Make Payment
-
User logs in and adds products to the cart.
-
Proceeds to the checkout page and confirms order details.
-
Selects preferred payment method (e.g., PayPal, Stripe, credit card).
-
System redirects or communicates securely with the selected payment gateway.
-
User completes the payment process (may be redirected to external gateway page).
-
Gateway confirms transaction status and sends response back to the platform.
-
If payment is successful, order is confirmed and a confirmation message/email is sent.
-
If failed, user is shown an error message and offered retry options.
Exceptions
ID | Description |
---|---|
E1 | Payment declined by gateway → Notify user, suggest checking card details or balance |
E2 | Session timeout → Request user to start checkout again |
E3 | Network error during transaction → Show retry option |
E4 | Payment gateway unreachable → Show fallback message and allow alternative method selection |
Result
Transaction is successfully completed and payment is recorded. Order is placed and processed.
Use frequency
Very High: Critical step executed for every paid transaction.
Additional information
-
Payment integrations use secure protocols (e.g., HTTPS, OAuth, API tokens).
-
PCI-DSS compliance ensured on gateway level.
-
PrestaShop supports multiple modules like Stripe, PayPal, Klarna.
-
Order status updates automatically upon payment success or failure.
-
Confirmation email includes invoice and payment reference.
Sources
This use case is based on eCommerce best practices and standard payment integration flows used in platforms like PrestaShop. Documentation aligned with public sector guidelines.