Test Task For Use Case
Test Task For Use Case
Preface
The merchant has an empty website. He plans to sell T-shirts. The merchant wants the product to be stored in a virtual cart and
at any moment the client has the opportunity to move to it and complete the purchase. The merchant also wants his customers
to be able to pay for the order using a Visa/Mastercard card method (the method processes UAH, USD, GBP, EUR, AUD) and
also with the help of the Perfect Money electronic wallet (the wallet processes only EUR currencies and USD). For these
payment methods to become available on his website, our merchant-made integration with a payment aggregator, provided him
with 1 card payment method and 1 Perfect money payment method (funds received by the merchant after payment of an
invoice can be stored in him in 3 currencies {EUR, USD, GBP} in the personal account of the payment aggregator with which
he made the integration). Also, the merchant wants all customers to be able to pay the invoice using the methods available to
him regardless of the currencies processed by this method, i.e. a t-shirt on the site may cost 3 CAD and the customer should
be able to pay using the available methods, given that none method does not support CAD currency. In addition, the customer
expressed the following wish: “I want that after my client goes to the payment page, the entire text is displayed to him in a
language he understands.
Additional conditions
Payment methods (Visa/Mastercard and Perfect money) charge a fee for each transaction:
● Visa/Mastercard - 2%
● Perfect Money - 3%
The payment aggregator takes a commission for the conversion of 2% (including for conversion in cases when the currency
displayed by the customer on the website differs from those currencies in which he can keep a balance in his personal account
on the website of the payment aggregator)
The payment aggregator can convert any currencies on its side and send the currencies they process to the payment methods.
Task:
1. Describe the business task of this functionality (what is needed and why).
2. Describe the appearance of the virtual shopping cart (buttons, attributes, marks, links).
3. Describe the payment page that the client will see when he clicks the "Buy" button next to the product from the virtual
cart. Abstract from the requirements of payment methods on the data that must be transferred to them. You can
describe any fields and buttons to your liking, for example: “After selecting the Visa/Mastercard payment method, the
client must specify the card number... etc.”
4. Describe all possible cases related to currency conversions. All the cases that can happen if a customer wants to buy
a product in currency X using a payment method that supports currencies (X, Y, Z ...) etc.
5. Describe both positive and negative scenarios (what will happen if the customer changes his mind about buying this
product or an error occurs on the part of the payment method, which will result in the payment being unsuccessful,
etc.)
6. Describe the math (how much the product cost, how much money will go in the form of a commission to the payment
method, how much money will remain after all conversions and commissions for this operation, and how much
money our customer will receive at the final stage).
****
Тестове повинно містити:
Текстовий опис бізнес задачі
Для опису сценаріїв / flow - User story + use cases / діаграми BPMN or sequence. Для опису сторінки
чекауту простий макет у фігмі, базьзаміку etc.
Accept payments in Attract and retain an Integrate with a payment gateway that
Multi-Currency multiple currencies international customer supports multiple currencies and configure
Payment through base by facilitating easy the system to dynamically present
Support Visa/Mastercard and payments in their local currency options based on customer
Perfect Money. or preferred currency. preference or location.
Convert any
Ensure all customers Develop or integrate with a currency
Currency customer-selected
can complete conversion service that can handle real-
Conversion currency to one of
transactions smoothly, time conversion rates and fees
and the supported
regardless of the application, including a 2% conversion fee
Processing currencies and
currency used on the and respective transaction fees (2% for
Fees apply transaction
website. Visa/Mastercard, 3% for Perfect Money).
fees.
Seamlessly connect
Establish a secure API integration with a
Simplify the payment
with a payment
Integration chosen payment aggregator that supports
process by centralizing
aggregator to handle
with Payment the required functionalities, ensuring
payments, currency currency conversion, fee
Aggregator secure data transmission and compliance
conversions, and fee application, and
applications. with financial regulations.
transaction processing
through a single service.
The name or title of the T- Helps users identify Use clear, legible fonts and provide
Product Name
shirt. the selected products. sufficient spacing.
WEB
MOBILE
WEB
Basic flowchart visualizing the shopping and payment process for purchasing (1)
T-shirts, including decision points like:
- payment method selection
- currency handling
- payment success
- failure
- cancellation
Description of the buttons for the Enhanced Online T-Shirt Purchase system (2)
Use Case:
Enhanced Online T-Shirt Purchase with Full Currency and Language Support
Attribute Details
Use Case Name Enhanced Online T-Shirt Purchase with Full Currency and Language Support
Actor Customer
The customer has internet access and can navigate to the merchant's website. The
shopping cart, checkout functionalities, and databases for product inventory, user
Preconditions sessions, financial transactions, and currency rates are operational. Payment
gateway integration for Visa/Mastercard and Perfect Money is set up and functional.
Multilingual support is enabled on the payment page.
The customer successfully completes the purchase in their preferred currency and
language, or an alternative outcome is reached based on the scenario. The
Postconditions
merchant receives the payment in their account, with all transaction details and fees
applied stored in the financial transactions database.
Trigger The customer decides to purchase a T-shirt from the merchant's website.
1. Customer selects a T-shirt, with the selection querying the product inventory
database.
2. Customer adds the T-shirt to the shopping cart, managed by a user-specific
database.
3. Customers review the cart and select their preferred currency, with the system
converting prices using the currency rates database.
4. Customer proceeds to checkout and is presented with a multilingual payment
Normal Flow page, where they choose their preferred language.
5. Customer selects a payment method, and the system applies the corresponding
transaction fees.
6. Customer enters payment details, and the payment aggregator converts the
currency if necessary, applying a conversion fee.
7. Payment is processed, transaction details and fees are logged in the financial
transactions database, and the customer receives a confirmation in their chosen
language.
Databases must ensure data integrity and security. Multilingual support for all
Special
customer-facing pages, especially the payment page. Real-time synchronization
Requirements
between databases and the website for stock and currency rates.
Frequency of Database interactions and multilingual support are utilized with every customer
Use action related to product selection, cart management, checkout, and payment.
High - Ensuring currency flexibility and multilingual support is essential for the
Priority
platform's accessibility and user satisfaction.
Currency Flexibility:
1. The system supports multiple currencies for pricing and payment,
including UAH, USD, GBP, EUR, AUD, and CAD.
2. Customers can select their preferred currency from the available
options during checkout.
3. If the selected currency is CAD, the system automatically converts it
Business Rules to a supported currency for payment processing.
Payment Methods and Fees:
1. Payment methods include Visa/Mastercard and Perfect Money.
2. Visa/Mastercard transactions incur a flat 2% fee per transaction.
3. Perfect Money transactions incur a flat 3% fee per transaction.
4. The payment aggregator applies a 2% fee for currency conversions,
including conversions necessary for payment processing.
Continuous updates and maintenance are required for currency conversion rates,
payment gateway integrations, and multilingual content to ensure accuracy and
Notes and Issues
compliance with financial regulations.
1 Original Product Cost 3.00 CAD Price of the T-shirt listed on the website.
Final Amount
6 Received by 2.1609 USD Final amount after all deductions.
Merchant
Explanation:
Original Product Cost of The T-shirt is initially priced at 3 CAD on the merchant's website. The CAD amount
is converted to USD to facilitate the payment. The conversion rate applied here is 1 CAD = 0.75 USD,
so 3 CAD becomes 2.25 USD. The payment aggregator facilitates the currency conversion and charges
a 2% fee on the converted amount. Thus, 2% of 2.25 USD equals 0.045 USD, so the amount available
after the conversion fee is deducted from the converted amount, resulting in 2.25 USD - 0.045 USD =
2.205 USD. The chosen payment method (Visa/Mastercard in this case) charges a commission for
processing the transaction, which is another 2% fee applied on the amount after the conversion fee,
resulting in 2.205 USD * 2% = 0.0441 USD. This is the net amount that the merchant receives after all
fees and commissions are deducted from the original converted amount. After subtracting the payment
method commission from the amount after conversion fees, the merchant is left with 2.205 USD -
0.0441 USD = 2.1609 USD.
User story
Feature: Successful online T-shirt purchase
Scenario: Customer completes a T-shirt purchase successfully
Negative Scenario 1
Customer Abandons Cart
Negative Scenario 2
Payment Method Error
1. After selecting the payment method, if the currency selected is not supported, the customer is
prompted to choose a different currency.
2. After entering payment details, if the payment authorization fails, the customer is given
options to retry the payment or choose a different payment method.
3. At any point before confirming the payment, the customer has the option to cancel the
transaction and return to the shopping cart.
In next alt. scenario where the merchant wants all customers to be able to pay in their preferred
currency using available payment methods, even if those methods do not directly support the
currency in which the product is priced (in this case, CAD), we need to incorporate a currency
conversion process into the sequence diagram. This process will ensure that when a customer
chooses to pay, the amount in CAD is converted to a currency supported by the selected payment
method before the transaction proceeds.
Here's how we can integrate this currency conversion process into the sequence:
1. After the Customer selects a payment method on the Payment Page, the Payment System
checks if the selected payment method supports CAD.
2. If CAD is not supported, the Payment System requests a currency conversion from the
Payment Aggregator.
3. The Payment Aggregator converts the amount from CAD to a supported currency and returns
the converted amount to the Payment System.
4. The Customer is informed about the conversion and proceeds with the payment in the
converted currency.
5. The rest of the payment process continues as previously outlined, with the transaction being
processed in the converted currency.