public void CreatePaymentTokenScheduledTest() { using (Tokenio.User.TokenClient tokenClient = TestUtil.CreateClient()) { UserMember payer = TestUtil.CreateMemberAndLinkAccounts(tokenClient); Alias payeeAlias = TestUtil.RandomAlias(); UserMember payee = tokenClient.CreateMemberBlocking(payeeAlias); Token token = CreateTransferTokenSample.CreateTransferTokenScheduled(payer, payeeAlias); Assert.NotNull(token); } }
public void RedeemScheduledPaymentTokenTest() { using (Tokenio.User.TokenClient tokenClient = TestUtil.CreateClient()) { UserMember payer = TestUtil.CreateMemberAndLinkAccounts(tokenClient); Alias payeeAlias = TestUtil.RandomAlias(); UserMember payee = tokenClient.CreateMemberBlocking(payeeAlias); Account payeeAccount = LinkMemberAndBankSample.LinkBankAccounts(payee); Token token = CreateTransferTokenSample.CreateTransferTokenScheduled(payer, payeeAlias); Transfer transfer = RedeemTransferTokenSample.RedeemTransferToken( payee, payeeAccount.Id(), token.Id); Assert.NotNull(transfer); Assert.NotEmpty(transfer.ExecutionDate); } }