toJson

fun toJson(): String

Returns a JSON string representation of this saved payment method object to be deserialized with create.

Use this method to serialize a saved payment method. The resulting JSON string can be deserialized with create.

The JSON string is compatible with the iOS version of the Datatrans SDK.

Return

The JSON string representation