Use Secure Fields to collect the CVV for cards previously stored.
store
property to true
,
or when creating a new payment method
directly from the checkout session.
The returned payment method includes details about the card that was used, as well
as the id
of the payment method that we can use in the next step.
paymentMethod
object with both the id
and scheme
of the previously stored card. This enables proper validation for the security code based on the card scheme (e.g., 3 or 4 digits) and provides the appropriate security code label (CVV, CVC, CID) in the field data.
paymentMethodId
prop is deprecated but still supported for backward compatibility. We recommend using the new paymentMethod
prop to benefit from scheme-specific CVV validation.paymentMethodId
or paymentMethod
object with Secure Fields, only the
security code can be captured. Attempting to add any of the other
fields (number, expiration date) will result in an error.