Professional Documents
Culture Documents
Thanhtoan
Thanhtoan
Thanhtoan
iClothes
Use-Case Specification: Thanh toán
Version <1.0>
[Note: The following template is provided for use with the Rational Unified Process. Text enclosed in
square brackets and displayed in blue italics (style=InfoBlue) is included to provide guidance to the author
and should be deleted before publishing the document. A paragraph entered following this style will
automatically be set to normal (style=Body Text).]
[To customize automatic fields in Microsoft Word (which display a gray background when selected), select
File>Properties and replace the Title, Subject and Company fields with the appropriate information for
this document. After closing the dialog, automatic fields may be updated throughout the document by
selecting Edit>Select All (or Ctrl-A) and pressing F9, or simply click on the field and press F9. This must
be done separately for Headers and Footers. Alt-F9 will toggle between displaying the field names and the
field contents. See Word help for more information on working with fields.]
iClothes Version: <1.0>
Use-Case Specification: Thanh toán Date: <dd/mmm/yy>
<document identifier>
Revision History
Date Version Description Author
<dd/mmm/yy> <x.x> <details> <name>
Table of Contents
1. Brief Description 4
3. Alternative Flows 5
3.1 <Area of Functionality> Error! Bookmark not defined.
3.1.1 < A1 First Alternative Flow > Error! Bookmark not defined.
3.1.2 < A2 Second Alternative Flow > 6
3.2 <Another Area of Functionality> Error! Bookmark not defined.
3.2.1 < AN Another Alternative Flow > 6
4. Subflows 6
4.1 <S1 First Subflow > Error! Bookmark not defined.
4.2 < S2 Second Subflow > Error! Bookmark not defined.
5. Key Scenarios 6
6. Preconditions 6
6.1 < Precondition One > Error! Bookmark not defined.
7. Postconditions 6
7.1 < Postcondition One > Error! Bookmark not defined.
8. Extension Points 6
8.1 <Name of Extension Point> 6
9. Special Requirements 7
9.1 < First Special Requirement > 7
1. Brief Description
[The description briefly conveys the role and purpose of the use case. A single paragraph will suffice for
this description.]
Là người dùng tôi muốn thanh các đơn hàng, bao gồm các phương thức thanh toán như thanh toán khi nhận
hàng, chuyển khoản ngân hàng và thanh toán qua ví điện tử.
Bước 6: Hệ thống hiển thị các phương thức thanh toán là thanh toán khi nhận hàng, chuyển khoản ngân
hàng hoặc ví điện tử.
Bước 7: Người dùng chọn phương thức thanh toán
• Nếu chọn thanh toán khi nhận hàng:
Bước 7.1.1. Hệ thống ghi nhận đơn đặt hàng và chờ người dùng xác nhận khi nhận hàng
để thanh toán.
• Nếu chọn chuyển khoản ngân hàng:
o Bước 7.2.1 Hệ thống cung cấp thông tin tài khoản ngân hàng để người dùng thực hiện
chuyển khoản.
o Bước 7.2.2 Người dùng thực hiện chuyển khoản và cung cấp thông tin chuyển khoản cho
hệ thống.
• Nếu chọn thanh toán qua ví điện tử:
o Bước 7.3.1 Hệ thống yêu cầu người dùng đăng nhập vào ví điện tử và xác nhận thanh
toán.
o Bước 7.3.2 Người dùng xác nhận thanh toán và hệ thống xử lý giao dịch.
Bước 8: Người dùng nhấn “Thanh toán” để thực hiện thanh toán
Bước 9: Hệ thống hiển thị thông báo người dùng xác nhận thanh toán sản phẩm
Bước 10: Người dùng chọn “Xác nhận”
Bước 11: Hệ thống hiển thị thông báo thanh toán thành công
3. Alternative Flows
[More complex alternatives are described in a separate section, referred to in the Basic Flow subsection of
Flow of Events section. Think of the Alternative Flow subsections like alternative behavior⎯ each
alternative flow represents alternative behavior usually due to exceptions that occur in the main flow. They
may be as long as necessary to describe the events associated with the alternative behavior.
Start each alternative flow with an initial line clearly stating where the alternative flow can occur and the
conditions under which it is performed.
End each alternative flow with a line that clearly states where the events of the main flow of events are
resumed. This must be explicitly stated.
Using alternative flows improves the readability of the use case. Keep in mind that use cases are just
textual descriptions, and their main purpose is to document the behavior of a system in a clear, concise,
and understandable way.]
4. Subflows
A subflow should be a segment of behavior within the use case that has a clear purpose, and is "atomic" in
the sense that you do either all or none of the actions described. You may need to have several levels of
sub-flows, but if you can you should avoid this as it makes the text more complex and harder to understand.
[There may be, and most likely will be, a number of subflows in a use case. Keep each sub flow separate
to improve clarity. Using sub flows improves the readability of the use case, as well as preventing use
cases from being decomposed into hierarchies of use cases. Keep in mind that use cases are just textual
descriptions, and their main purpose is to document the behavior of a system in a clear, concise, and
understandable way.]
5. Key Scenarios
- Người dùng chọn thanh toán khi nhận hàng.
- Người dùng chọn chuyển khoản ngân hàng.
- Người dùng chọn thanh toán qua ví điện tử.
6. Preconditions
6.1 Người dùng đã đăng nhập thành công vào hệ thống với vai trò là khách hàng
7. Postconditions
7.1 Đơn đặt hàng được ghi nhận và chờ xác nhận khi nhận hàng nếu chọn thanh toán khi
nhận hàng.
7.2 Giao dịch chuyển khoản ngân hàng hoặc thanh toán qua ví điện tử được xử lý thành
công.
8. Extension Points
[Extension points of the use case.]
9. Special Requirements
[A special requirement is typically a nonfunctional requirement that is specific to a use case, but is not
easily or naturally specified in the text of the use case’s event flow. Examples of special requirements
include legal and regulatory requirements, application standards, and quality attributes of the system to be
built including usability, reliability, performance or supportability requirements. Additionally, other
requirements⎯such as operating systems and environments, compatibility requirements, and design
constraints⎯should be captured in this section.]