Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIPayments

Test an online checkout link and the receipt it sends

A seller shares a link, a buyer pays with a card, and a receipt goes to an address that has to be the one they typed.

Published on:

A checkout link is the entire payment infrastructure of a small business. There is no storefront behind it and no support team in front of it, so whatever the page does is what the customer gets.

This use case pays a link on the Squair clone and checks the receipt, including the address the receipt was sent to.

The flow under test

The receipt is the part that matters after the payment, and it is the part most likely to be tested loosely.

  • The link identifies itself - seller name, link id, item and amount, so the buyer knows what they are paying for.
  • The payment completes - a confirmation naming the amount received.
  • The receipt is specific - payment id, item and total paid rather than a generic thank you.
  • The receipt reaches the right address - the email the buyer entered, echoed back on the confirmation.

That last assertion is unusual and worth keeping. Echoing the receipt address back to the buyer is what lets them catch a typo while they still care, and asserting it catches a form that sends the receipt somewhere else entirely.

Note

Note: Checking the destination of a receipt, and not only that a receipt was produced, is a one line assertion that covers a whole class of silent failure. Start on TestMu AI. Try free!

The test file

The link is identified by its id as well as its amount, which matters because a seller may have several live links with the same price.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/square-clone-app/link?reset=true
max_steps: 40
tags: [square, payments, checkout]
---

# Squair 12.1: Checkout link

Catalog objective: complete a Squair checkout link with a test card.
Key assertion: the receipt page shows the correct amount.

## Verify the checkout link
Verify the page shows "KilnAndClay Studio" with the checkout link "chk_7K21", the item "Pottery workshop - single seat" and an amount of "$65.00".

## Fill in the details
Type "sam@riverfield.test" into "Email for receipt" and "4242 4242 4242 4242" into "Card number".

## Pay
Click "Pay $65.00" and verify a green banner titled "Payment complete" says the payment of "$65.00" was received.

## Verify the receipt
Verify the receipt shows "Payment ID" of "pay_8813", "Item" of "Pottery workshop - single seat", "Total paid" of "$65.00" and "Receipt sent to" of "sam@riverfield.test".

The item description is carried from the link through to the receipt and asserted in both places, so a payment that completes against a generic line item fails.

Step by step coverage

The four steps follow the link from what it claims to be through to what the buyer is left holding.

StepWhat it proves
Verify the checkout linkThe seller, link id, item and amount are all shown
Fill in the detailsThe receipt email and card details are accepted
PayPayment completes with the amount confirmed
Verify the receiptPayment id, item, total and receipt destination are all recorded

Asserting the item description on both the link and the receipt is what proves the description travelled with the payment rather than being regenerated.

Next-generation test execution with TestMu AI

Running it

kane-cli testmd run tests/square/checkout-link_test.md

The result is coverage on a payment surface with no fallback, checked through to the artifact the buyer keeps.

Links and invoices share most of their behaviour and differ in their lifecycle, which makes them a sensible pair to cover together. Generating the pair covers that, and evidence based QA covers retaining proof of a payment run.

Author

...

Bhawana

Blogs: 77

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Checkout Link FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests