function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mahesh p 54mahesh p 54 

How to perform Aadhaar e-KYC in salesforce lightning app

Is there any simple way to integrate Aadhaar e-KYC with salesforce. For example when i enter Aadhar number and click on Proceed to KYC it should send an OTP to registered mobile number and authenticate it. Any quick response is highly appreciated.
<div class="slds-section slds-p-bottom_medium slds-wrap" >
            <h3 class="slds-section__title slds-theme_shade" onclick="{!c.showContent}">
                <span class="slds-truncate slds-p-horizontal_small" title="KYC Information">KYC Information</span>
            </h3>
            <div aria-hidden="false" class="slds-section__content">
                <div class="slds-grid slds-wrap">
                    <!-- div class="slds-col"-->
                        <!--div class="slds-p-horizontal_medium"-->
                            <div class="slds-form-element slds-small-size_2-of-2 slds-medium-size_1-of-2 slds-large-size_1-of-2">
                                <div class="slds-form-element__control">
                                    <span class="slds-checkbox  slds-m-left--x-small slds-m-top--x-small">
                                        <input type="checkbox" name="options" id="checkbox-69" disabled="true" 
                                               checked="{!v.contact.Is_KYC_Done__c}"/>
                                        <label class="slds-checkbox__label" for="checkbox-69">
                                            <span class="slds-checkbox_faux"></span>
                                            <span class="slds-form-element__label">E-KYC Done</span>
                                        </label>
                                    </span>
                                </div>
                            </div>
                            
                            <!--div class="slds-form-element slds-small-size_2-of-2 slds-medium-size_1-of-2 slds-large-size_1-of-2"-->
     
                                 <aura:renderIf isTrue="{! !v.contact.Is_KYC_Done__c}">
                            <div class="slds-form-element slds-m-left--x-small slds-m-top--x-small slds-small-size_2-of-2 slds-medium-size_1-of-2 slds-large-size_1-of-2">
                                <!--ui:outputURL value="{!v.myURL}" label="Perform KYC"/-->
                                <ui:button label="Perform E-KYC" press="{!c.gotoURL}" />
                            </div>
                             </aura:renderIf>
                            <aura:renderIf isTrue="{!v.contact.Is_KYC_Done__c}">
                            <div class="slds-form-element">
                                <label class="slds-form-element__label slds-m-left--x-small slds-m-top--x-small slds-small-size_2-of-2 slds-medium-size_1-of-2 slds-large-size_1-of-2" 
                                       for="opportunityDocumentId">Id</label>
                                <div class="slds-form-element__control slds-m-left--x-small">
                                    <label for="opportunityDocumentId">{!v.contact.Document_Id__c}</label>
                                </div>
                            </div>
                           </aura:renderIf>
                            <!--/div-->	
                           
                        <!--/div--> 
                    <!--/div-->
<!--Controller-->
gotoURL : function(component, event, helper) {
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
            "url":"https://xyz-dev-ed.my.salesforce.com/apex/AadhaarBridgeIndex"
        });
        urlEvent.fire(); 
    }