Each field can be customized to match your brand using the styles
property
when adding the field.
<iframe>
containers, so you can target
them with your own CSS. Finally, an object of CSS rules can be passed to the
addCardNumberField
, addExpiryDateField
and addSecurityCodeField
methods
options to style elements inside the frame(s).
styles
Object this way:
camelCase
format (PascalCase
for vendor-prefixed properties) and values as strings:[state]
(e.g.
:hover
) and values as objects containing base stylescardNumberField
and displaying the appropriate scheme logo.
Refer to payment_method.scheme for the full list of schemes.
The logos can be loaded via https://api.<gr4vy_id>.gr4vy.app/assets/icons/card-schemes/<scheme>.svg
Refer to card scheme definitions for more information around the schemes and logos.