{"componentChunkName":"component---src-pages-markdown-remark-fields-slug-js","path":"/growth/test-cases-for-your-e-commerce-payment-gateway-page/","result":{"data":{"markdownRemark":{"id":"ce5f1e6e-f74a-53b1-a826-d2dbe344f65b","excerpt":"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…","html":"<p>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.</p>\n<p><strong><em>Note</em></strong><em>:- Also, if you want to know how to write the best test cases for a perfect UI for your website, go through this</em> <a href=\"https://www.loginradius.com/blog/fuel/2017/07/test-cases-for-your-e-commerce-payment-gateway-page/\"><em>article</em></a><em>.</em></p>\n<h3 id=\"what-is-a-payment-gateway\" style=\"position:relative;\"><a href=\"#what-is-a-payment-gateway\" aria-label=\"what is a payment gateway permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>What Is A Payment Gateway?</strong></h3>\n<p>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.</p>\n<h3 id=\"different-kinds-of-payment-gateways\" style=\"position:relative;\"><a href=\"#different-kinds-of-payment-gateways\" aria-label=\"different kinds of payment gateways permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Different Kinds Of Payment Gateways</strong></h3>\n<p>There are two types of payment gateways. They are as follows:-</p>\n<ul>\n<li><strong>Shared Gateway:-</strong> In this type of gateway, the payment is processed while keeping customer on the merchant site page. As soon as the detail is filled 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 <em>Authorize.net CIM and Stripe.</em></li>\n<li><strong>Hosted Gateway:-</strong> 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:- <em>Setcom, Paypal Standard, Payza</em></li>\n</ul>\n<p>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:-</p>\n<ul>\n<li><strong>Functionality:-</strong> You have to make sure that your payment gateway functions the way it is supposed to do. Check your page rigorously to find the flaws in the functionality.</li>\n<li><strong>Integration:-</strong> 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.</li>\n<li><strong>Security:-</strong>   It is one of the most important aspects while testing a payment gateway. Other than buffer 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 <a href=\"https://www.owasp.org/index.php/Top_10_2013-Top_10\">OWASP Top 10</a>, <a href=\"https://blogs.msdn.microsoft.com/michael_howard/\">Web Blog by Michael Howard</a> and <a href=\"https://security.googleblog.com/\">Google Online Security Blog</a>.</li>\n<li><strong>Performance:-</strong> 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 <a href=\"https://smartbear.com/learn/performance-testing/\">Smartbear’s Performance Testing Resource</a> and <a href=\"https://www.guru99.com/performance-testing.html\">guru99</a> articles.</li>\n</ul>\n<h3 id=\"checklists-while-preparing-test-cases-for-payment-gateway\" style=\"position:relative;\"><a href=\"#checklists-while-preparing-test-cases-for-payment-gateway\" aria-label=\"checklists while preparing test cases for payment gateway permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Checklists While Preparing Test Cases For Payment Gateway</strong></h3>\n<ul>\n<li>You should perform tests and collect data from dummy cards from different card issuers like Master card, Visa and Maestro and payment gateways like PayPal and Google Wallet.</li>\n<li>Research about all the error codes related to payment gateways and keep them handy for reference.</li>\n<li>Keep a good understanding about payment gateways workflow.</li>\n<li>Also understand payment gateway’s settings like currency format.</li>\n</ul>\n<h3 id=\"areas-where-payment-gateway-are-used\" style=\"position:relative;\"><a href=\"#areas-where-payment-gateway-are-used\" aria-label=\"areas where payment gateway are used permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Areas Where Payment Gateway Are Used</strong></h3>\n<ol>\n<li>Ecommerce</li>\n<li>Travelling websites</li>\n<li>Others sites like government sites accepting taxes, sites containing paid application forms etc.</li>\n</ol>\n<p>Here, let’s discuss the example of an E-commerce website’s payment gateway page.</p>\n<h3 id=\"test-cases-for-an-ecommerce-sites-payment-gateway\" style=\"position:relative;\"><a href=\"#test-cases-for-an-ecommerce-sites-payment-gateway\" aria-label=\"test cases for an ecommerce sites payment gateway permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Test cases for An Ecommerce Site’s Payment Gateway</strong></h3>\n<p><strong>Test Cases</strong></p>\n<p><strong>Process</strong></p>\n<p><strong>Steps To Execute</strong></p>\n<p><strong>Expected Results</strong></p>\n<p>TC-001</p>\n<p>Adding to Cart</p>\n<p>1. Select Items 2. Click on Add to cart</p>\n<p>1. Selected Items should be displayed on checkout page 2. Total amount should be calculated</p>\n<p>TC-002</p>\n<p>Adding to Cart</p>\n<p>1. Select Items 2. Select quantity 3. Click on Add to cart</p>\n<p>1. Selected items should be displayed with its quantity 2. Total amount should be calculated accordingly</p>\n<p>TC-003</p>\n<p>Adding Coupon code</p>\n<p>1. Select item 2. Apply coupon code 3. Click on Add to cart</p>\n<p>Applying a valid coupon code will deduct the amount accordingly</p>\n<p>TC-004</p>\n<p>Adding Invalid Coupon code</p>\n<p>1. Select item 2. Apply coupon code 3. Click on Add to cart</p>\n<p>Applying an invalid coupon code will give an error message- \"Invalid Coupon\" and will not deduct the amount</p>\n<p>TC-005</p>\n<p>Keeping the site idle for sometime after adding products to cart</p>\n<p>1. Select Items 2. Click on Add to Cart 3. leave the site for sometime</p>\n<p>After coming back, items should be still visible in the cart</p>\n<p>TC-006</p>\n<p>Check that Checkout Address Page consist of all the details of product such as Name, Quantity, Amount, etc.</p>\n<p>1. Select Items 2. Click on Add to Cart</p>\n<p>All the information should show on cart page</p>\n<p>TC-007</p>\n<p>Check the Name, Street Address, City, State, Country, Postal code are mandatory field in the Checkout Address page.</p>\n<p>1. Select Items 2. Click on Add to cart 3. Check the Address field</p>\n<p>All the fields should required</p>\n<p>TC-008</p>\n<p>Remove items from the cart</p>\n<p>1. Select 2-3 Items 2. Click on Add to Cart 3. On cart page remove one item</p>\n<p>After removing one item payment should update</p>\n<p>TC-009</p>\n<p>Check Cancel Button</p>\n<p>1. Select 2-3 Items 2. Click on Add to Cart 3. Click on cancel button</p>\n<p>1. It should not redirect to payment 2. Item should not remove from cart</p>\n<p>TC-010</p>\n<p>Check the Name on Card, Card Number,Expiration date, CVV are mandatory fields in the</p>\n<p>1. Select the card type 2. Do not fill any information 3. Click on Submit button</p>\n<p>It should show the validation message for all the required fields</p>\n<p>TC-011</p>\n<p>Check the error message when enter invalid input for mandatory fields</p>\n<p>1. Select the card type 2. Enter invalid card number [Check for CVV, Expiration date] 3. Click on submit button</p>\n<p>It should show error message for invalid details</p>\n<p>TC-012</p>\n<p>Check the redirection after successful payment</p>\n<p>1. Select the card type 2. Enter valid details 3. Click on submit button</p>\n<p>1. Payment should done successfully. 2. It should redirect to site home page with proper details. 3. It should show order no on thank you page.</p>\n<style class=\"grvsc-styles\">\n  .grvsc-container {\n    overflow: auto;\n    -webkit-overflow-scrolling: touch;\n    padding-top: 1rem;\n    padding-top: var(--grvsc-padding-top, var(--grvsc-padding-v, 1rem));\n    padding-bottom: 1rem;\n    padding-bottom: var(--grvsc-padding-bottom, var(--grvsc-padding-v, 1rem));\n    border-radius: 8px;\n    border-radius: var(--grvsc-border-radius, 8px);\n    font-feature-settings: normal;\n  }\n  \n  .grvsc-code {\n    display: inline-block;\n    min-width: 100%;\n  }\n  \n  .grvsc-line {\n    display: inline-block;\n    box-sizing: border-box;\n    width: 100%;\n    padding-left: 1.5rem;\n    padding-left: var(--grvsc-padding-left, var(--grvsc-padding-h, 1.5rem));\n    padding-right: 1.5rem;\n    padding-right: var(--grvsc-padding-right, var(--grvsc-padding-h, 1.5rem));\n  }\n  \n  .grvsc-line-highlighted {\n    background-color: var(--grvsc-line-highlighted-background-color, transparent);\n    box-shadow: inset var(--grvsc-line-highlighted-border-width, 4px) 0 0 0 var(--grvsc-line-highlighted-border-color, transparent);\n  }\n  \n</style>","headings":[{"value":"What Is A Payment Gateway?","depth":3},{"value":"Different Kinds Of Payment Gateways","depth":3},{"value":"Checklists While Preparing Test Cases For Payment Gateway","depth":3},{"value":"Areas Where Payment Gateway Are Used","depth":3},{"value":"Test cases for An Ecommerce Site’s Payment Gateway","depth":3}],"fields":{"slug":"/growth/test-cases-for-your-e-commerce-payment-gateway-page/"},"frontmatter":{"metatitle":"Test Cases For Your E-commerce Payment Gateway Page","metadescription":"Trying to make test cases to build a flawless payment gateway page for your ecommerce website? Here are some factors you need to take seriously before creating test cases for payment gateway page.","description":"Trying to make test cases to build a flawless payment gateway page for your ecommerce website? Here are some factors you need to take seriously before creating test cases for payment gateway page.","title":"Test Cases For Your E-commerce Payment Gateway Page","canonical":null,"date":"July 21, 2017","updated_date":null,"tags":["payment gateway","technology","ecommerce"],"coverImage":{"childImageSharp":{"fluid":{"aspectRatio":1.7699115044247788,"src":"/static/aed422329b9801dc1baac0ea6cefb41c/382b3/Test-Cases-for-your-Ecommerce-Payment-Gateway-Page.png","srcSet":"/static/aed422329b9801dc1baac0ea6cefb41c/f5f11/Test-Cases-for-your-Ecommerce-Payment-Gateway-Page.png 200w,\n/static/aed422329b9801dc1baac0ea6cefb41c/6d133/Test-Cases-for-your-Ecommerce-Payment-Gateway-Page.png 400w,\n/static/aed422329b9801dc1baac0ea6cefb41c/382b3/Test-Cases-for-your-Ecommerce-Payment-Gateway-Page.png 560w","sizes":"(max-width: 560px) 100vw, 560px"}}},"author":{"id":"Rakesh Soni","github":"oyesoni","bio":"Entrepreneur by Work. Artist by ❤️. Engineer by Trade. Human Being. Feminist. Proud Indian. CEO/Founder at LoginRadius, securing 1B+ IDs worldwide.","avatar":"rakesh-soni.jpg"}}}},"pageContext":{"id":"ce5f1e6e-f74a-53b1-a826-d2dbe344f65b","fields__slug":"/growth/test-cases-for-your-e-commerce-payment-gateway-page/","__params":{"fields__slug":"growth"}}},"staticQueryHashes":["1171199041","1384082988","1711371485","1753898100","2100481360","229320306","23180105","528864852"]}