diff --git a/Directory.Build.props b/Directory.Build.props index 015adf7a..ee1c84b0 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 4.3.2 + 4.3.3 diff --git a/test/CheckoutSdkTest/Sessions/AbstractSessionsIntegrationTest.cs b/test/CheckoutSdkTest/Sessions/AbstractSessionsIntegrationTest.cs index 21247afb..8c5d85a9 100644 --- a/test/CheckoutSdkTest/Sessions/AbstractSessionsIntegrationTest.cs +++ b/test/CheckoutSdkTest/Sessions/AbstractSessionsIntegrationTest.cs @@ -69,9 +69,7 @@ protected async Task CreateNonHostedSession(ChannelData channel ChannelData = channelData }; - return await Retriable( - async () => await DefaultApi.SessionsClient().RequestSession(sessionRequest, CancellationToken.None), - HasSessionCreated); + return await DefaultApi.SessionsClient().RequestSession(sessionRequest, CancellationToken.None); } protected async Task CreateHostedSession() diff --git a/test/CheckoutSdkTest/Sessions/RequestAndGetSessionsIntegrationTest.cs b/test/CheckoutSdkTest/Sessions/RequestAndGetSessionsIntegrationTest.cs index 0135e8c2..149715be 100644 --- a/test/CheckoutSdkTest/Sessions/RequestAndGetSessionsIntegrationTest.cs +++ b/test/CheckoutSdkTest/Sessions/RequestAndGetSessionsIntegrationTest.cs @@ -107,23 +107,20 @@ private async Task ShouldRequestAndGetCardSessionAppSession(Category category, await CreateNonHostedSession(appSession, category, challengeIndicator, transactionType); sessionResponse.ShouldNotBeNull(); - sessionResponse.Created.ShouldNotBeNull(); + sessionResponse.Accepted.ShouldNotBeNull(); - var response = sessionResponse.Created; + var response = sessionResponse.Accepted; response.Id.ShouldNotBeNull(); response.SessionSecret.ShouldNotBeNull(); response.TransactionId.ShouldNotBeNull(); response.Amount.ShouldNotBeNull(); - response.Certificates.ShouldNotBeNull(); - response.Ds.ShouldNotBeNull(); response.Card.ShouldNotBeNull(); response.AuthenticationType.ShouldBe(AuthenticationType.Regular); response.AuthenticationCategory.ShouldBe(category); - response.Status.ShouldBe(SessionStatus.Unavailable); + response.Status.ShouldBe(SessionStatus.Pending); response.NextActions.Count.ShouldBe(1); - response.NextActions[0].ShouldBe(NextAction.Complete); - response.TransactionType.ShouldBe(transactionType); + response.NextActions[0].ShouldBe(NextAction.CollectChannelData); response.GetSelfLink().ShouldNotBeNull(); response.GetLink("callback_url").ShouldNotBeNull(); @@ -144,11 +141,11 @@ private async Task ShouldRequestAndGetCardSessionAppSession(Category category, getSessionResponse.AuthenticationType.ShouldBe(AuthenticationType.Regular); getSessionResponse.AuthenticationCategory.ShouldBe(category); - getSessionResponse.Status.ShouldBe(SessionStatus.Unavailable); + getSessionResponse.Status.ShouldBe(SessionStatus.Pending); getSessionResponse.NextActions.Count.ShouldBe(1); - getSessionResponse.NextActions[0].ShouldBe(NextAction.Complete); + getSessionResponse.NextActions[0].ShouldBe(NextAction.CollectChannelData); getSessionResponse.TransactionType.ShouldBe(transactionType); - getSessionResponse.ResponseCode.ShouldBe(ResponseCode.U); + getSessionResponse.ResponseCode.ShouldBeNull(); getSessionResponse.AuthenticationDate.ShouldNotBeNull(); getSessionResponse.GetSelfLink().ShouldNotBeNull();