Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Check device binding

Use the Thales SDK to check the current device binding state for a provisioned token ID.

Call this before you start a transaction flow. The returned state tells you if you must create a binding first.

public void getBindingState(@NonNull MastercardTAFHelper mastercardTAFHelper, @NonNull String tokenID) {
    try {
        BindingState bindingState = mastercardTAFHelper.getBindingState(tokenID);
    } catch (TMGClientException e) {
        // Handle the error
    }
}
let vProvisionedTokenID = ""
do {
    let state = try visaCTFHelper.bindingState(forVProvisionedTokenID: vProvisionedTokenID)
} catch let error {
    // Handle the error
}

Next steps by binding state

Use the returned value to choose the next call in your flow.

  • UNBOUND

    The provisioned token ID has not been bound to this device yet.

    Create the binding between the client and server. See the create device binding.

  • BOUND

    The provisioned token ID is already bound to this device.

    Use the provisioned token ID to authenticate the transaction. See the authenticate a transaction.

Last updated

Was this helpful?