create

fun create(sdkInput: String, activityProvider: () -> Activity): CardProvisioningCreateResult

Provides an instance of CardProvisioning if input data is valid.

Return

A CardProvisioningCreateResult Object confirming whether or not the CardProvisioning instance was successfully created and, if not, then specifying the reason for the failure.

Parameters

sdkInput

Encoded activation data (output from a GET request to the networkTokenActivationData endpoint).

activityProvider

A function which returns an Activity. The Activity returned should be the Activity which hosts the card provisioning functionality within the client application.