For merchants who are using
If you are using our Smart Fields solution, or any of our
REDIRECTflows, the Device ID is being automatically collected so you may ignore this section.
- Testing: https://static-sandbox.dlocal.com/js/collector/direct.js
- Production: https://static.dlocal.com/js/collector/direct.js
For web applications, in order to integrate our JS library and perform the device data collection you should include the following code snippet right after the opening
Within this code, you should:
LIBRARY_URLwith the URL for the sandbox or production environment, as detailed above.
API_KEYwith your Smart Fields API Key. This key can be obtained from the Settings > Integration section in the Merchant Dashboard.
- Retrieve the
event_uuidreturned by the call to the
dlocalCollector.create()method, and submit this value in the payment request within the additional_risk_data.device.event_uuid parameter.
For Mobile applications, dLocal provides SDKs for both Android and iOS that enable collecting device information which can then be provided in the payment request, within the additional_risk_data.device.event_uuid parameter.
For full integration details, please refer to the documentation in each of the public repositories
Device ID - Mobile SDKs
Updated 7 months ago