v0.1.0-alpha.14
Pre-release
Pre-release
·
3 commits
to main
since this release
0.1.0-alpha.14
Optional security code on the card element for mail-order /
telephone-order (MOTO) and virtual-terminal flows.
Changes
fields.cardSecurityCode.hiddenhides the CVC / CVV / CID field and
skips its validation. Defaults tofalse(security code still
required when shown). Same pattern asfields.holderName.hiddenand
fields.postalCode.hidden.- When hidden, the security-code input is not shown, card validation
no longer requires CVC, andencryptedSecurityCodeon the submitted
value is an empty string. Remount the element to toggle (for example,
when a "Use CVC?" checkbox changes). Online checkout should keep the
default.
overflow.card({
fields: {
cardSecurityCode: { hidden: true },
},
});Install
- CDN (pinned):
https://cdn.overflow.co/sdk/v1/0.1.0-alpha.14/payment-elements.js - npm (after sync):
npm install @getoverflow/payment-elements@0.1.0-alpha.14
(prerelease dist-tag:next)