public Stream UpdateAuthenticationSource(AuthenticationSource authenticationSourceForm)
        {
            BaseBusinessService <AuthenticationSource> businessService = (BaseBusinessService <AuthenticationSource>)BusinessFactory.Create(Keywords.UpdateAuthenticationSource);
            OperationResult result = businessService.Update(authenticationSourceForm);

            return(result.ToJsonStream());
        }
        //[DataRow(AuthenticationSource.MERCHANT_INITIATED)]
        //[DataRow(AuthenticationSource.MOBILE_SDK)]
        public void CardHolderEnrolled_ChallengeRequired_v2_Initiate_AllSources(AuthenticationSource source)
        {
            var secureEcom = Secure3dService.CheckEnrollment(card)
                             .WithCurrency(Currency)
                             .WithAmount(Amount)
                             .Execute();

            AssertThreeDSResponse(secureEcom, AVAILABLE);

            var initAuth = Secure3dService.InitiateAuthentication(card, secureEcom)
                           .WithAmount(Amount)
                           .WithCurrency(Currency)
                           .WithAuthenticationSource(source)
                           .WithMethodUrlCompletion(MethodUrlCompletion.YES)
                           .WithOrderCreateDate(DateTime.Now)
                           .WithAddress(shippingAddress, AddressType.Shipping)
                           .WithBrowserData(browserData)
                           .Execute();

            AssertThreeDSResponse(initAuth, CHALLENGE_REQUIRED);
            Assert.IsTrue(initAuth.ChallengeMandated);
        }
Exemple #3
0
 public IUser FindUser(AuthenticationSource source, string authenticationObject)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public IUser FindUser(AuthenticationSource source, string authenticationObject) => _users.Find(u => u.AuthenticationSource == source && u.AuthenticationObject == authenticationObject);
Exemple #5
0
 public Secure3dBuilder WithAuthenticationSource(AuthenticationSource value)
 {
     AuthenticationSource = value;
     return(this);
 }