重置Pin码接口

暂时只有RSA的可以使用
/**
 * 重置pin码
 *
 * @param mContext  上下文
 * @param voucherId 凭证号
 * @param listener  回调
 */
SdkManager.getInstance().resetPin(mContext, voucherId, new GdcaResultListener() {
    @Override
    public void onResultSuccess(String msg) {
        Toast.makeText(mContext, "重置pin码成功", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onResultError(int i, String msg) {
        Toast.makeText(mContext, msg, Toast.LENGTH_SHORT).show();
    }
});

结果由回调接口GdcaResultListener

public interface GdcaResultListener {
    void onResultSuccess(String msg);

    void onResultError(int errorCode, String msg);
}

results matching ""

    No results matching ""