Advanced configuration and usage patterns for React nekuda.js
<NekudaPaymentForm>
doesn’t fit your needs. This feature relies on you providing an elementId
to your element instances that matches the elementId
specified in the configuration here.
<NekudaWalletProvider>
using the placeholders
prop (targeting by element type or by a specific elementId
), or directly on an individual element instance via its placeholder
prop or options.placeholder
.
Beyond visual styles, you can also customize the placeholder text for form inputs. This can be done globally using the placeholders
prop on the <NekudaWalletProvider>
(see the Custom Placeholders subsection under Advanced Usage for details), or for individual elements using their options
prop. For example, to set a placeholder for a specific CardNumberElement
:
elements
object from the useNekudaWallet
hook:
key
in the prefill
method corresponds to the CardFormData
type, which maps to a NekudaElementType
.
email
- Email addressbillingAddress
- Billing addresscity
- Citystate
- State/ProvincezipCode
- ZIP/Postal codephoneNumber
- Phone numberdocument.querySelectorAll
to find iframes and send messages directly:
The new API provides several advantages: