public void ManageTokens() { var service = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); var response = service.Verify(new HpsCreditCard { Number = "4111111111111111", ExpMonth = 12, ExpYear = 2015, Cvv = "123" }, null, true); Assert.IsNotNull(response); Assert.IsNotNull(response.TokenData); Assert.AreEqual("85", response.ResponseCode); Assert.AreEqual(0, response.TokenData.TokenRspCode); var token = response.TokenData.TokenValue; var updateRepsonse = service.UpdateTokenExpiration(token, 12, 2025); Assert.IsNotNull(updateRepsonse); Assert.AreEqual("0", updateRepsonse.ResponseCode); }
public void ManageTokens() { var service = new HpsCreditService(TestServicesConfig.ValidSecretKeyConfig()); var response = service.Verify(new HpsCreditCard { Number = "4111111111111111", ExpMonth = 12, ExpYear = 2015, Cvv = "123" }, null, true); Assert.IsNotNull(response); Assert.IsNotNull(response.TokenData); Assert.AreEqual("85", response.ResponseCode); Assert.AreEqual(0, response.TokenData.TokenRspCode); var token = response.TokenData.TokenValue; var updateRepsonse = service.UpdateTokenExpiration(token, 12, 2025); Assert.IsNotNull(updateRepsonse); Assert.AreEqual("0", updateRepsonse.ResponseCode); }