Instantiate SDK

Velocity Android Software Development Kit Integration Guide

To instantiate the SDK, you must:

  • Implement interfaces.
  • Ensure that you have all the prerequisites.

Instantiate the SDK by providing the appropriate configuration details as shown in the following code sample:

this._mpoint = mPoint(URL ("[CPD provided URL]"),  
        this,  
        "username",[USERNAME]  
        "password", [PASSWORD]  
        clientid, [CLIENT ID]  
        accountid, [ACCOUNT ID]  
        null,  
        context,  
        null, 
        RecordMap<String, String> (), 
        arrayOf(ClientInfo.IDENTIFIERS.DEVICEID) 
this._mpoint.mode = mPoint.OUTPUT_MODE.NONE)

📘

Note: Instantiating the SDK is common for all payment methods.