示例#1
0
        public void CreateCardToken_Test()
        {
            dynamic response = _client.CreateCardToken(_card);

            Assert.NotNull(response);
            Assert.False(response.IsError);
        }
示例#2
0
        public void CreateCardToken_Test()
        {
            var response = _client.CreateCardToken(_card);

            Assert.IsNotNull(response);
            Assert.IsFalse(response.IsError);
        }
示例#3
0
        public void CreateCharge_Using_Token()
        {
            dynamic token    = _client.CreateCardToken(_card);
            dynamic response = _client.CreateChargeWithToken(100M, token.Id);

            Assert.NotNull(response);
            Assert.False(response.IsError);
            Assert.True(response.Paid);
        }