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 CLIMandates

Test an autopay mandate and the cap that limits it

A mandate is standing permission to take money. Four steps check the cap rule before the permission is granted.

Published on:

A mandate is permission for someone else to take money from an account on a schedule. The cap is the only limit on that permission, which makes the validation around it the most consequential rule in the flow.

This use case creates a mandate on the PhonePey clone and checks the cap is enforced.

The checks that matter

The rule under test is that the cap has to cover the debit, and a mandate that violates it fails every month rather than once.

AttemptCapExpected outcome
Cap below the debit500 against a 649 debitRefused, naming the required minimum
Cap above the debit1,000 against the same debitAccepted and listed as active

Testing the refusal first is what proves the validation exists. A mandate created with an adequate cap says nothing about whether an inadequate one would also have been created and then failed silently on the first debit.

Note

Note: A mandate that fails on its first scheduled debit looks like a service outage to the customer, which is why the validation is worth pinning. Start on TestMu AI. Start for free

The flow as a test file

The service selection is asserted for both its debit amount and its frequency, since a mandate is defined by both and a monthly cap against a weekly debit is a different agreement.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/phonepe-clone-app/autopay?reset=true
max_steps: 45
tags: [phonepe, fintech, mandates]
---

# PhonePey 21.2: Autopay mandate

Catalog objective: create a UPI autopay mandate for a service.
Key assertion: the mandate is active with its cap amount.

## Choose the service
Select "StreamFlix Premium" in "Service" and verify "Debit amount" reads "₹649.00" and "Frequency" reads "Monthly".

## Verify the cap must cover the debit
Type "500" into "Maximum limit per debit", type "4321" into "UPI PIN", click "Approve mandate", and verify an error says the limit must be at least ₹649.00.

## Set a valid cap and approve
Replace "Maximum limit per debit" with "1000", type "4321" into "UPI PIN", and click "Approve mandate".

## Verify the mandate is active with its cap
Verify a green banner titled "Mandate created" names the mandate for StreamFlix Premium at "₹649.00" monthly with a first debit of "2026-10-15", and the mandate list shows it with "Max ₹1,000.00" and an active status.

The final assertion includes the first debit date, which is the value that tells the customer when the standing permission first takes effect.

Step by step coverage

A service, a refusal, an approval and a record.

StepWhat it proves
Choose the serviceThe debit amount and frequency are both shown
Verify the cap must cover the debitAn inadequate cap is refused with the minimum stated
Set a valid cap and approveAn adequate cap is accepted with the PIN
Verify the mandate is active with its capAmount, frequency, first debit date and cap are all stored

Both the confirmation and the mandate list are asserted. A mandate that confirms but does not appear in the list is permission the customer cannot review or revoke.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/phonepe/autopay-mandate_test.md

Add a revocation variant, since a mandate that cannot be cancelled is a considerably worse defect than one that cannot be created.

Standing permissions outlive the release that created them. Evidence based QA covers retaining proof, and generating the revocation case covers the other half of the pair.

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

Autopay Mandate 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