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 a drop-in payment component with 3DS2

An embedded component, a test card, an authentication challenge and a result code the shopper has to actually see.

Published on:

A drop-in component is a payment interface rendered by your provider inside your page. You configure it, you do not control it, and it updates on their release schedule rather than yours.

This use case pays through the Adyeen drop-in with a 3DS2 test card and checks the result the shopper is shown.

The checks that matter

The assertions worth making about a drop-in are the ones that survive the component being rebuilt underneath you.

CheckWhy it holds up
The order context is correctNorthwind Software and the amount, asserted before any method is chosen
Authentication is genuinely triggeredA 3DS2 dialog appears carrying the same amount
The result code is surfacedAuthorised, shown to the shopper rather than only logged
The references are recordedOrder reference and PSP reference, which is what support quotes later

Asserting the amount inside the authentication dialog, and not only on the checkout page, is the check that matters most. A challenge presenting a different figure than the order is something the shopper approves without realising.

Note

Note: Kane CLI resolves each step against the live page, so a drop-in component that changes its internal markup does not break a test written in plain English. Start on TestMu AI. Start for free

The flow as a test file

The card number chosen is what triggers the challenge. A standard test card would settle directly and the authentication path would never be exercised.

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

# Adyeen 13.1: Drop-in payment

Catalog objective: pay via the Adyeen drop-in with a test card and 3DS2.
Key assertion: the authorised result is surfaced to the shopper.

## Choose the card method
Verify the page subtitle reads "Northwind Software · €129.50", then choose "Card" in the drop-in.

## Use the 3DS2 test card
Type "4212 3456 7890 1237" into "Card number", "03 / 30" into "Expiry", "737" into "CVC", and click "Pay €129.50".

## Complete the 3DS2 challenge
Verify a dialog titled "3DS2 authentication" opens showing "Amount" of "€129.50", then click "Complete authentication".

## Verify the authorised result
Verify a green banner titled "Payment authorised" shows "Result code" of "Authorised" for ORD-55120, with "PSP reference" of "PSP883000001717", "Method" of "Card", "Amount" of "€129.50" and a badge reading "3DS2 authentication completed".

The final assertion checks five values at once, including the badge stating authentication completed, which is the detail that determines liability on a disputed charge.

Step by step coverage

Every step leaves the flow somewhere the next assertion can see, which is what keeps a multi-stage payment readable as a file.

StepWhat it proves
Choose the card methodThe drop-in renders for the right merchant and amount
Use the 3DS2 test cardCard details are accepted and the payment is submitted
Complete the 3DS2 challengeAuthentication is triggered and shows the same amount
Verify the authorised resultResult code, references, method, amount and the authentication badge

The PSP reference is the value that ties this run to the provider record. Asserting it means a failed run hands support something to search on rather than a screenshot.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/adyen/drop-in-payment_test.md

The same file runs against a test environment and a live integration by changing only the starting URL and the card values.

Payment components update without asking, which makes this worth scheduling rather than running on request. Kane CLI in a pipeline covers the flags and exit codes, and how browser agents interpret a page explains why the plain English steps survive a component rewrite.

Author

...

Bhawana

Blogs: 75

  • 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

Drop-In Component 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