OptionaladyenBrowser-safe client key; its origins are allowlisted in the Customer Area.
Adyen prefixes every client key with its environment, and the constructor
refuses a client key that does not start with test_ on sandbox or
live_ on live (a legacy origin key included).
ISO 3166-1 alpha-2. Adyen Web v6 requires it on the checkout instance.
OptionalcspA Content-Security-Policy nonce for the two tags the adapter injects, the
Adyen Web <script> and the stylesheet <link>, set as their nonce
attribute before insertion, so a script-src and a style-src that allow
them by nonce load them; a 'strict-dynamic' script-src allows the
script without one, and never applies to styles. The Card component
reads no nonce and adds no script or <style> of its own, unless
fieldOptions configures a wallet such as Click to Pay. Pass the value
alone, as in the policy's 'nonce-<value>' source; the constructor
refuses anything else. The adapter never reads a nonce from the page, and
the loadScript and loadStylesheet seams load their file without it.
Explicit; selects the client key prefix, the CDN host and the SDK's own environment value.
OptionalgetTest seam: returns the SDK in place of window.AdyenWeb.
OptionalloadTest seam: loads the script in place of the adapter's injection, which carries the integrity check.
OptionalloadTest seam: loads the stylesheet in place of the adapter's injection, which carries the integrity check.
OptionallocaleBCP-47 locale for Adyen's own field texts. MountOptions.locale wins per mount.
OptionalpaymentAccount capabilities vary per contract — override the conservative default.
OptionalsdkSelf-hosting: the script URL to load instead of Adyen's CDN copy, without an integrity check.
OptionalsdkAdyen Web version to load from the CDN instead of ADYEN_WEB_VERSION. Pinned, never floating. The adapter carries Adyen's integrity hashes for its own pinned build only, so with this set both files load without an integrity check.
OptionalstylesheetSelf-hosting: the stylesheet URL to load instead of Adyen's CDN copy,
without an integrity check. An empty string loads no stylesheet, for a page
that ships Adyen Web's styles itself. loadSdk() waits for the sheet to
load or fail, and with it for every sheet it @imports, so a sheet that
imports from a slow host delays the first mount on each page load.
The environment value handed to Adyen Web, which also selects the CDN host the SDK loads from (
checkoutshopper-{value}.cdn.adyen.com): Adyen requires both to match the region of the account's live endpoints. Defaults to"test"on sandbox and"live"(Europe) on live; a live account served from another region sets"live-us","live-au","live-nea","live-in"or"live-apse". The value is lowercased first, as Adyen Web does itself."live-apse"is accepted because Adyen Web types it and maps it to its own hosts, which serve the pinned build, though Adyen's v6 integration guides do not list it. Any other value, or one that contradictsenvironment, is refused at construction.