public static Transfer RedeemTransferToken(
            Member payee,
            string accountId, // account ID of the payee
            string tokenId)
        {
            var cartId = Util.Nonce();

            var transferToken = payee.GetToken(tokenId).Result;

            var transfer = payee.RedeemToken(
                transferToken,
                new TransferEndpoint
            {
                Account = new BankAccount
                {
                    Token = new Token
                    {
                        MemberId  = payee.MemberId(),
                        AccountId = accountId
                    }
                }
            },
                cartId).Result;

            return(transfer);
        }
示例#2
0
        public static Transfer RedeemTransferToken(
            Member payee,
            string accountId, // account ID of the payee
            string tokenId)
        {
            var cartId = Util.Nonce();

            var transferToken = payee.GetToken(tokenId).Result;

            var transferDestination = new TransferDestination
            {
                Token = new TransferDestination.Types.Token
                {
                    MemberId  = payee.MemberId(),
                    AccountId = accountId
                }
            };

            var transfer = payee.RedeemToken(
                transferToken,
                transferDestination,
                cartId).Result;

            return(transfer);
        }