Recipe
- Web
- Android
- iOS
How it works
- Web
- Android
- iOS
- Listen for the
primer:readyevent to access the Primer SDK instance - Retrieve the user’s name from your authentication system or profile data
- Call
primer.setCardholderName()with the name value
When using
setCardholderName(), you don’t need to include the <primer-input-cardholder-name> component in your form if you don’t want users to edit the name.Variations
Pre-fill from shipping address
- Web
- Android
- iOS
Pre-fill with editable field
If you want to pre-fill but still allow editing, include the cardholder name input and set an initial value:- Web
- Android
- iOS
See also
Build a custom card form
Step-by-step guide to building a fully custom card form
SDK options
All available SDK configuration options