public interface

PMGenerateTokenListener

com.paymill.android.listener.PMGenerateTokenListener
Known Indirect Subclasses

Class Overview

Implement this interface in your UI to be kept informed, when a token has been generated. Learn more about tokens in the PayMill documentation.

Summary

Public Methods
abstract void onGenerateToken(String token)
Called on successful token generation.
abstract void onGenerateTokenFailed(PMError error)
Called on unsuccessful token generation.

Public Methods

public abstract void onGenerateToken (String token)

Called on successful token generation. You will receive the callback on the main thread.

Parameters
token the created token.

public abstract void onGenerateTokenFailed (PMError error)

Called on unsuccessful token generation. You will receive the callback on the main thread.

Parameters
error the cause of the failure