// Wrap your app with the providerfunction App() {return ( <NekudaWalletProvider publicKey="YOUR_NEKUDA_PUBLIC_KEY" // Get this from the nekuda Portal userId="user_123" // Your user identifier > <PaymentForm /> </NekudaWalletProvider>);}
That’s it! This setup will render a complete payment form.
A pre-built, styled payment form component that includes common payment fields.
Recommended Approach: We highly recommend using <NekudaPaymentForm> instead of individual field components. The complete form component automatically captures comprehensive payment data and user context that enhances payment success rates and provides valuable insights for transaction processing. This holistic approach ensures optimal performance and better user experience for your payment flows.
Copy
<NekudaPaymentForm style={{ width: '500px' }}>{/* Optional children like custom buttons or messages can be placed here */}</NekudaPaymentForm>
Secure Data Collection: Sensitive payment information (card number, CVC, expiry) is collected within secure iframes hosted by nekuda. This data never touches your servers directly.
Tokenization: Upon successful submission, the SDK returns a secure, single-use token representing the payment details. This token can be safely passed to your backend.
No PCI Scope: By using the iframed elements, your PCI DSS compliance scope is reduced, as you don’t handle or store raw cardholder data.