Device DNA integration

James Goodwin edited this page Mar 24, 2017 · 1 revision

The Judopay platform uses a unique Device ID to identify a mobile device for real-time fraud prevention.

When a user of your mobile app performs an action that triggers a payment on your backend, you should gather the Device ID from the mobile device and send it to your backend to include with the payment request to Judopay. This guide explains the steps.

  1. Depending on your mobile app, follow the getting started guide for integrating DeviceDNA for iOS or Android.

  2. With the deviceIdentifier, key and value returned, send these values up to your API.

  3. Include the DeviceDNA fields in the clientDetails model when performing a payment

    $payment = $judopay->getModel('Payment');
    $payment->setAttributeValues(
        array(
            'judoId' => '<JUDO_ID>',
            'yourConsumerReference' => '<CONSUMER_REFERENCE>',
            'yourPaymentReference' => '<PAYMENT_REFERENCE>',
            'amount' => 1.01,
            'currency' => 'GBP',
            'cardNumber' => '4976000000003436',
            'expiryDate' => '12/15',
            'cv2' => 452,
            'clientDetails' => 
                array(
                    'key' => $key,
                    'value' => $value,
                    'deviceIdentifier' => $deviceIdentifier
                )
        )
    );
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.