public void Visa_Debit_WhenValidTrackData_ShouldReverseOk() { var service = new HpsDebitService(TestServicesConfig.ValidSecretKeyConfig()); var charge = service.Charge(50, "usd", "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?", "32539F50C245A6A93D123412324000AA", null, true); Assert.IsNotNull(charge); StringAssert.Matches(charge.ResponseCode, new Regex("00")); var reverse = service.Reverse(charge.TransactionId, 50, "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?"); Assert.IsNotNull(reverse); StringAssert.Matches(reverse.ResponseCode, new Regex("00")); }
public void Mastercard_Debit_WhenValidTrackData_ShouldReverseOk() { var service = new HpsDebitService(TestServicesConfig.ValidServicesConfig()); var charge = service.Charge(50, "usd", "%B5473500000000014^MC TEST CARD^251210199998888777766665555444433332?;5473500000000014=25121019999888877776?", "F505AD81659AA42A3D123412324000AB", null, true); Assert.IsNotNull(charge); StringAssert.Matches(charge.ResponseCode, new Regex("00")); var reverse = service.Reverse(charge.TransactionId, 50, "%B5473500000000014^MC TEST CARD^251210199998888777766665555444433332?;5473500000000014=25121019999888877776?"); Assert.IsNotNull(reverse); StringAssert.Matches(reverse.ResponseCode, new Regex("00")); }