SDK authentication for POS SDK

The pairing code flow is different for the POS SDK, than for the SoftPOS SDK

Once the pairing has been requested, and the pair method is called. The SDK will read the serial number from the device, and directly use the serial number as a access token. This will result in an almost instantaneous.

Generating a paring code will 'open' the terminal to make the pair request itself. These pairing codes are only valid for 30 seconds, so make sure you call our backend again if the user failed to initiate.

  1. Open up the pairing of the terminal by requesting a pairing code.

  2. Prompt the user, or programaticly run the pair command in the SDK:

    try {
              BrouwerVosSDK.getInstance().pair(Context context);
    } catch (Exception e) {
        // something went wrong while pairing
    }

Last updated