Skip to content

support pre-collected consent - #977

Merged
tayooyelowo-stripe merged 1 commit into
masterfrom
tayooyelowo/support-pre-collected-consent
Sep 17, 2026
Merged

tayooyelowo-stripe merged 1 commit into
masterfrom
tayooyelowo/support-pre-collected-consent

Conversation

@tayooyelowo-stripe

@tayooyelowo-stripe tayooyelowo-stripe commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary & motivation

Summary

Adds TypeScript declarations for passing pre-collected Financial Connections Consent evidence through:

  • collectBankAccountForPayment
  • collectBankAccountForSetup
  • collectFinancialConnectionsAccounts
  • collectBankAccountToken

This introduces a shared PreCollectedConsent interface:

interface PreCollectedConsent {
  consent: string;
  collectedAt: number;
}

Motivation

Approved merchants can render Stripe-issued consent text in their own UI, collect affirmative customer acceptance, and provide the Consent ID and acceptance timestamp when launching Financial Connections.

The corresponding Stripe.js runtime support validates and forwards this evidence only when the private-preview beta is active. Server-side merchant eligibility and evidence validation remain authoritative, so providing preCollectedConsent does not guarantee that Stripe will omit its consent pane.

Testing & documentation

The additions to tests/types/src/valid.ts verify that all four supported methods accept preCollectedConsent.

@tayooyelowo-stripe
tayooyelowo-stripe merged commit 0c546ba into master Sep 17, 2026
5 checks passed
@tayooyelowo-stripe
tayooyelowo-stripe deleted the tayooyelowo/support-pre-collected-consent branch September 17, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants