public void Mastercard_Debit_WhenValidTrackData_ShouldChargeOk()
        {
            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"));
        }
Esempio n. 2
0
        public void Visa_Debit_WhenValidTrackData_ShouldChargeOk()
        {
            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"));
        }
        public void Mastercard_Debit_WhenValidE3Data_ShouldChargeOk()
        {
            const string e3 = "<E1052711%B5473501000000014^MC TEST CARD^251200000000000000000000000000000000?|GVEY/MKaKXuqqjKRRueIdCHP" +
                              "Poj1gMccgNOtHC41ymz7bIvyJJVdD3LW8BbwvwoenI+|+++++++C4cI2zjMp|11;5473501000000014=25120000000000000000?|8XqYkQGMdGeiIsgM0" +
                              "pzdCbEGUDP|+++++++C4cI2zjMp|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVpCW" +
                              "3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHca" +
                              "Bb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>";
            var service = new HpsDebitService(TestServicesConfig.ValidServicesConfig());
            var charge  = service.Charge(50, "usd", e3, "F505AD81659AA42A3D123412324000AB", new HpsEncryptionData
            {
                Version = "01"
            }, true);

            Assert.IsNotNull(charge);
            StringAssert.Matches(charge.ResponseCode, new Regex("00"));
        }
Esempio n. 4
0
        public void Visa_Debit_WhenValidE3Data_ShouldChargeOk()
        {
            const string e3 = "<E1050711%B4012001000000016^VI TEST CREDIT^251200000000000000000000?|LO04K0WFOmdkDz0um+GwUkILL8ZZOP6Z" +
                              "c4rCpZ9+kg2T3JBT4AEOilWTI|+++++++Dbbn04ekG|11;4012001000000016=25120000000000000000?|1u2F/aEhbdoPixyAPGy" +
                              "IDv3gBfF|+++++++Dbbn04ekG|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFB" +
                              "ESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0Zfg" +
                              "vM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>";
            var service = new HpsDebitService(TestServicesConfig.ValidSecretKeyConfig());
            var charge  = service.Charge(50, "usd", e3, "32539F50C245A6A93D123412324000AA", new HpsEncryptionData
            {
                Version = "01"
            }, true);

            Assert.IsNotNull(charge);
            StringAssert.Matches(charge.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"));
        }
 public void Mastercard_Debit_WhenValidE3Data_ShouldChargeOk()
 {
     const string e3 = "<E1052711%B5473501000000014^MC TEST CARD^251200000000000000000000000000000000?|GVEY/MKaKXuqqjKRRueIdCHP" +
         "Poj1gMccgNOtHC41ymz7bIvyJJVdD3LW8BbwvwoenI+|+++++++C4cI2zjMp|11;5473501000000014=25120000000000000000?|8XqYkQGMdGeiIsgM0" +
         "pzdCbEGUDP|+++++++C4cI2zjMp|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVpCW" +
         "3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHca" +
         "Bb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>";
     var service = new HpsDebitService(TestServicesConfig.ValidServicesConfig());
     var charge = service.Charge(50, "usd", e3, "F505AD81659AA42A3D123412324000AB", new HpsEncryptionData
     {
         Version = "01"
     }, true);
     Assert.IsNotNull(charge);
     StringAssert.Matches(charge.ResponseCode, new Regex("00"));
 }
Esempio n. 7
0
        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"));
        }
Esempio n. 8
0
 public void Visa_Debit_WhenValidE3Data_ShouldChargeOk()
 {
     const string e3 = "<E1050711%B4012001000000016^VI TEST CREDIT^251200000000000000000000?|LO04K0WFOmdkDz0um+GwUkILL8ZZOP6Z" +
                       "c4rCpZ9+kg2T3JBT4AEOilWTI|+++++++Dbbn04ekG|11;4012001000000016=25120000000000000000?|1u2F/aEhbdoPixyAPGy" +
                       "IDv3gBfF|+++++++Dbbn04ekG|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFB" +
                       "ESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0Zfg" +
                       "vM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>";
     var service = new HpsDebitService(TestServicesConfig.ValidSecretKeyConfig());
     var charge = service.Charge(50, "usd", e3, "32539F50C245A6A93D123412324000AA", new HpsEncryptionData
     {
         Version = "01"
     }, true);
     Assert.IsNotNull(charge);
     StringAssert.Matches(charge.ResponseCode, new Regex("00"));
 }