Sunteți pe pagina 1din 6

Test Cases For Your E-

commerce Payment
Gateway Page
Preparing accurate test
cases for payment gateway
is a general task for a tester
working in a service
industry. In this post, I have
discussed some important
scenarios that are inevitable
while performing payment
gateway testing. Also, I have discussed about the important points one should
keep in mind while writing test cases for payment gateway.

Note:- Also, if you want to know how to write the best test cases for a perfect UI
for your website, go through this article.

What Is A Payment Gateway?


A payment gateway is a processing unit that approves online payments (debit
cards, credit cards, e-wallets, netbanking) for online purchases. The gateways
protect highly sensitive details like account holder details, card details, and so on.
The data is transferred securely between the two groups: merchant site and
customer.
Di erent Kinds Of Payment
Gateways
There are two types of payment gateways. They are as follows:-

Shared Gateway
In this type of gateway, the payment is processed while keeping customer
on the merchant site page. As soon as the detail is lled by the customer, a
transaction is processed. Shared gateway is the most preferable gateway as
it provides the convenience of staying in the merchant site. Some of the
examples are Authorize.net CIM and Stripe.

Hosted Gateway
Hosted Gateway is the payment process where the customer is directed to
the payment gateway website. Afterwards, when the transaction is
completed, he or she is redirected to the merchant site.Example:- Setcom,
Paypal Standard, Payza

As you have known the basics about payment gateway, let me tell you what
aspects you should keep in mind while creating test cases for check out page:-

Functionality:- You have to make sure that your payment gateway


functions the way it is supposed to do. Check your page rigorously to nd
the aws in the functionality.

Integration:- You have to check the integration of card and other banking
services with the payment gateway. Though, integration is a part of
functionality, it requires an exclusive check. The payment gateway should
perform the task with high precision whether it bills or pays back.

Security:- It is one of the most important aspects while testing a payment


gateway. Other than bu er overruns, one needs to take care of other
troubling security threats. Some of the resources you can take help from
while testing security on payment gateway are OWASP Top 10, Web Blog by
Michael Howard and Google Online Security Blog.
Performance:- Performance is another KPI for your payment gateway.
Hence, you should make sure about things like number of users your
payment gateway page can handle, number of users who are
simultaneously using your page. Some of the resources you can refer are
Smartbears Performance Testing Resource and guru99 articles.

Checklists While Preparing Test


Cases For Payment Gateway
You should perform tests and collect data from dummy cards from
di erent card issuers like Master card, Visa and Maestro and payment
gateways like PayPal and Google Wallet.
Research about all the error codes related to payment gateways and keep
them handy for reference.
Keep a good understanding about payment gateways work ow.
Also understand payment gateways settings like currency format.

Areas Where Payment Gateway


Are Used
1. Ecommerce
2. Travelling websites
3. Others sites like government sites accepting taxes, sites containing paid
application forms etc.

Here, lets discuss the example of an E-commerce websites payment gateway


page.

Test cases for An Ecommerce Sites


Payment Gateway
Test Steps To
Process Expected Results
Cases Execute
TC- Adding to Cart 1. Select 1. Selected Items should
001 Items be displayed on
2. Click on checkout page
Add to cart 2. Total amount should
be calculated

1. Select 1. Selected items should


Items be displayed with its
TC- 2. Select quantity
Adding to Cart
002 quantity 2. Total amount should
3. Click on be calculated
Add to cart accordingly

1. Select
item
2. Apply Applying a valid coupon
TC-
Adding Coupon code coupon code will deduct the
003
code amount accordingly
3. Click on
Add to cart

1. Select
item Applying an invalid
2. Apply coupon code will give an
TC- Adding Invalid Coupon
coupon error message- Invalid
004 code
code Coupon and will not
3. Click on deduct the amount
Add to cart

1. Select
Items
Keeping the site idle for 2. Click on After coming back,
TC-
sometime after adding Add to Cart items should be still
005
products to cart 3. leave the visible in the cart
site for
sometime

Check that Checkout


1. Select
Address Page consist of All the information
TC- Items
all the details of product should show on cart
006 2. Click on
such as Name, Quantity, page
Add to Cart
Amount, etc.
TC- Check the Name, Street 1. Select All the elds should
007 Address, City, State, Items required
Country, Postal code are 2. Click on
mandatory eld in the Add to cart
Checkout Address page. 3. Check the
Address
eld

1. Select 2-3
Items
2. Click on
TC- Remove items from the Add to Cart After removing one item
008 cart 3. On cart payment should update
page
remove one
item

1. Select 2-3
Items
1. It should not redirect
2. Click on
TC- to payment
Check Cancel Button Add to Cart
009 2. Item should not
3. Click on
remove from cart
cancel
button

1. Select the
card type
Check the Name on Card, 2. Do not ll
It should show the
TC- Card Number,Expiration any
validation message for
010 date, CVV are mandatory information
all the required elds
elds in the 3. Click on
Submit
button

TC- Check the error message 1. Select the It should show error
011 when enter invalid input card type message for invalid
for mandatory elds 2. Enter details
invalid card
number
[Check for
CVV,
Expiration
date]
3. Click on
submit
button

1. Select the 1. Payment should done


card type successfully.
2. Enter 2. It should redirect to
TC- Check the redirection
valid details site home page with
012 after successful payment
3. Click on proper details.
submit 3. It should show order
button no on thank you page.

Who istanupriya
Tanupriya is the Quality Analyst Engineer at
LoginRadius. Her passion lies in delivering high
performance quality software quickly and e ciently.
Moreover she also enjoys the cooking and outing in
free time.

S-ar putea să vă placă și