Before starting a trial, establish when payment begins and how cancellation works. A virtual card can change the payment instrument you expose, but it does not replace the subscription agreement. A synthetic card-number generator cannot issue the account or funding relationship a merchant may require.
This guide has two practical parts: a cancellation record for a customer, and a repeatable trial-end test for a developer. They share the same distinction between ending a contract and blocking a payment. For the permission and data-handling boundaries of a developer test, use the test authorization guide.
Record the terms before signup
| Item | What to save |
|---|---|
| Trial end | Exact date/time and the service’s stated timezone |
| Renewal | Price, currency, interval and any stated tax treatment |
| Cancellation | Where to cancel, deadline and effective date |
| Billing party | Merchant, app store or another platform managing the subscription |
| Confirmation | Order/subscription reference and cancellation receipt |
Set a reminder early enough to use the documented cancellation route. If a subscription is managed by an app store, cancel through that platform’s supported flow. Check for confirmation and the resulting access/end date; leaving an app or deleting an account is not necessarily the documented cancellation action.
Some trials require a payment method at signup and some do not. Do not assume a successful signup proves a future charge is authorized, or that every trial runs a small authorization immediately. Developers should document the configured behavior and show the customer what will happen next.
Separate cancellation from payment controls
The UK’s Financial Conduct Authority explains that canceling a recurring card payment does not necessarily end the contract and that payments may continue after receiving a replacement card. Those are UK consumer instructions; rights and procedures elsewhere depend on the jurisdiction and agreement. See FCA recurring card payments.
Use the merchant cancellation route to end the subscription under its terms. If you also need to stop a payment instruction or report an unauthorized charge, contact the issuer through an authenticated channel and follow the applicable procedure. Keep the confirmation for each action. For unfamiliar charges, the card-fraud response guide separates issuer contact from reporting. Do not assume “card blocked” means “nothing further owed.”
Check virtual-card features rather than a generic ranking
Availability depends on the account country, plan and specific card type. Before choosing a product for recurring payments, verify these points in the issuer’s current documentation or app:
- Whether it permits subscriptions and merchant-initiated renewals.
- Whether it supports preauthorization holds and later adjustments.
- Whether a disposable number changes after use and is excluded from recurring transactions.
- What freezing, deleting or replacing the number does to existing authorizations and account-update services.
- Which fees, spending limits and notification controls apply to that account.
For example, Revolut’s India virtual-card guidance distinguishes single-use restrictions including subscriptions and preauthorization. That regional example should not be advertised as a universal feature list for every Revolut market or plan. This page does not rank providers or promise current availability for an unverified country.
The virtual wallet demo uses fixed local fixtures and a controlled clock to exercise freeze, cancellation and expiry states. It does not issue cards or cancel a merchant subscription. Use it to test wallet UI behavior; the trial model below separately tests subscription timing and invoice observations.
Test the trial boundary with a controlled clock
The fictional policy below cancels when cancelAt becomes effective. Before the trial end it reports trialing; at the end it waits for an explicit invoice result. Merely reaching the end time does not prove a charge occurred.
export function trialState(snapshot, now) {
// A fictional trial contract; timestamps are UTC epoch seconds supplied by the test.
if (!snapshot || !Number.isSafeInteger(now) || !Number.isSafeInteger(snapshot.end) ||
now < 0 || snapshot.end < 0 || (snapshot.cancelAt !== null &&
(!Number.isSafeInteger(snapshot.cancelAt) || snapshot.cancelAt < 0))) throw new TypeError('Invalid trial clock');
if (snapshot.cancelAt !== null && snapshot.cancelAt <= now) return 'canceled';
if (now < snapshot.end) return 'trialing';
if (snapshot.invoice === 'paid') return 'active';
if (snapshot.invoice === 'failed') return 'payment-failed';
if (snapshot.invoice === 'pending') return 'payment-pending';
if (snapshot.invoice === 'none') return 'billing-due';
return 'review';
// cardBlocked is intentionally not contract cancellation or invoice success.
}| Case | Input / condition | Expected result |
|---|---|---|
| before-end | One second before trial ends | "trialing" |
| end | Exactly at end, no invoice result yet | "billing-due" |
| card-blocked | Blocked card without merchant cancellation | "billing-due" |
| canceled | Cancellation effective before trial ends | "canceled" |
| failed | Provider reports failed renewal | "payment-failed" |
| paid | Provider reports paid invoice | "active" |
| pending | Invoice payment not final | "payment-pending" |
test('Blocking a card does not cancel the fictional trial contract', () => {
const snapshot={end:1000,cancelAt:null,invoice:'none',cardBlocked:true};
assert.equal(trialState(snapshot,999),'trialing');
assert.equal(trialState(snapshot,1000),'billing-due');
assert.equal(trialState({...snapshot,cancelAt:1000},1000),'canceled');
assert.equal(trialState({...snapshot,invoice:'failed'},1000),'payment-failed');
});Epoch seconds here are small invented fixtures, not actual renewal dates. Notice the exact boundary: 999 is before an end of 1000; 1000 is billing due. Blocking a card changes neither that contract boundary nor the invoice result. A failed invoice is not silently promoted to active access.
A service that cancels at period end, pauses access, retries invoices or keeps a grace period needs additional explicit policy states. Preserve the distinction in both the customer message and the server record. Do not reuse this tiny function as an implementation of every provider’s billing rules.
Reproduce and extend the lifecycle
Extract the shared trial scenarios and use Node.js 22 or later:
node guide-demo.mjs trial
node --test guide-examples.test.mjs payment-guide-examples.test.mjs
Then test the actual provider integration with its supported clock and subscription fixtures. Stripe documents trial configuration and test clocks. Record your configured cancellation timing, missing-payment-method policy, notification behavior and failed-invoice recovery. Match verified invoice observations to the correct customer and subscription before changing access.
For a customer-facing release check, confirm that a reminder shows the same date and amount as the subscription record, that cancellation works on mobile, and that returning to the page shows the saved effective end date. These checks add value beyond testing whether a card-shaped string fits a form.
The linked FCA, regional virtual-card and Stripe billing references were last checked against provider documentation on . Providers do change what they publish — the official link beside each claim is authoritative.