Skip to content

Commit

Permalink
Update Klarna response request (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored May 13, 2024
1 parent 83cc866 commit 7d1f70e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ public class PaymentContextsPartnerMetadata
public string OrderId { get; set; }

public string CustomerId { get; set; }

public string SessionId { get; set; }

public string ClientToken { get; set; }
}
}
4 changes: 2 additions & 2 deletions test/CheckoutSdkTest/Accounts/AccountsIntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public AccountsIntegrationTest() : base(PlatformType.DefaultOAuth)
{
}

[Fact]
[Fact(Skip = "unavailable")]
public async Task ShouldCreateGetAndUpdateOnboardEntity()
{
string randomReference = RandomString(15);
Expand Down Expand Up @@ -90,7 +90,7 @@ public async Task ShouldCreateGetAndUpdateOnboardEntity()
onboardEntityRequest.Individual.FirstName.ShouldBe(verifyUpdated.Individual.FirstName);
}

[Fact]
[Fact(Skip = "unavailable")]
public async Task ShouldThrowConflictWhenCreatingExistingEntity()
{
string randomReference = RandomString(15);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ private async Task ShouldMakeAliPayPayment()
}
}

[Fact(Skip = "unavailable")]
[Fact]
private async Task ShouldMakeIdealPayment()
{
var idealSource = new RequestIdealSource { Description = "ORD50234E89", Language = "nl" };

var paymentRequest = new PaymentRequest
{
Source = idealSource,
Reference = "REFERENCE",
Currency = Currency.EUR,
Amount = 1000,
Capture = true,
Expand All @@ -64,7 +65,7 @@ private async Task ShouldMakeIdealPayment()

paymentResponse.ShouldNotBeNull();
paymentResponse.Status.ShouldNotBeNull();
paymentResponse.ResponseSummary.ShouldNotBeNull();
paymentResponse.Reference.ShouldBe("REFERENCE");
paymentResponse.Links.ShouldNotBeNull();

var payment = await DefaultApi.PaymentsClient().GetPaymentDetails(paymentResponse.Id);
Expand Down

0 comments on commit 7d1f70e

Please sign in to comment.