React

React SDK implementation

import React from 'react'
import useIdentityPayKYC from 'prembly-react-kyc'

const App = () => {
const config = {
first_name: 'John',
last_name: 'Doe',
email: '[email protected]',
phone: '+2348012345678',
widget_key: 'your_widget_key_here',
widget_id: 'your_widget_id_here',
metadata: {
transaction_id: 'txn_123',
},
callback: (response: any) => {
console.log('Verification result:', response)
},
}
const verifyWithIdentity = useIdentityPayKYC(config)

return Click to Test
}
export default App