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

ItemWhat to save
Trial endExact date/time and the service’s stated timezone
RenewalPrice, currency, interval and any stated tax treatment
CancellationWhere to cancel, deadline and effective date
Billing partyMerchant, app store or another platform managing the subscription
ConfirmationOrder/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.
}
CaseInput / conditionExpected result
before-endOne second before trial ends"trialing"
endExactly at end, no invoice result yet"billing-due"
card-blockedBlocked card without merchant cancellation"billing-due"
canceledCancellation effective before trial ends"canceled"
failedProvider reports failed renewal"payment-failed"
paidProvider reports paid invoice"active"
pendingInvoice 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.

Frequently Asked Questions

Does closing or blocking a card cancel a subscription?
Not necessarily. Cancel the service through the merchant and keep confirmation. Stopping a payment instruction and ending a contract are different actions; obligations can remain.
Does every free trial authorize a card immediately?
No. Some trials collect a payment method at signup, others later, and some require none. Read the product terms and test the configured flow.
Can a disposable virtual card be used for every trial?
No. Subscription, recurring-payment and preauthorization support vary by issuer, card product and merchant. Confirm current eligibility and restrictions instead of assuming disposable means subscription-ready.
Does the example reproduce Stripe billing automatically?
No. It models a fictional immediate-cancellation policy with explicit invoice observations and a controlled clock. Provider test clocks and real sandbox events require separate integration tests.