示例#1
0
    public IEnumerator Create(PWOneTimeToken tokenModel, string email, string currency, string amount, string fingerprint, string description)
    {
        this.email       = email;
        this.currency    = currency;
        this.amount      = amount;
        this.fingerprint = fingerprint;
        this.description = description;

        string cardNumber = tokenModel.GetCardNumber();
        string expMonth   = tokenModel.GetExpMonth();
        string expYear    = tokenModel.getExpYear();
        string cvv        = tokenModel.getCVV();

        isRequestFinished = false;
        yield return(StartCoroutine(RequestOneTimeToken(tokenModel.GetPublicKey(), cardNumber, expMonth, expYear, cvv)));
    }
示例#2
0
    public void Create(PWOneTimeToken tokenModel, string email, string currency, string amount, string fingerprint, string description, string plan, string period, string duration)
    {
        this.email       = email;
        this.currency    = currency;
        this.amount      = amount;
        this.fingerprint = fingerprint;
        this.description = description;
        this.plan        = plan;
        this.period      = period;
        this.duration    = duration;

        string cardNumber = tokenModel.GetCardNumber();
        string expMonth   = tokenModel.GetExpMonth();
        string expYear    = tokenModel.getExpYear();
        string cvv        = tokenModel.getCVV();

        StartCoroutine(RequestOneTimeToken(tokenModel.GetPublicKey(), cardNumber, expMonth, expYear, cvv));
    }