-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
samples/CheckoutSdk.SampleApp.Tests/CheckoutSdk.SampleApp.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
<TargetFramework>netcoreapp2.2</TargetFramework> | ||
<RootNamespace>Checkout.SampleApp</RootNamespace> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.6"/> | ||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.6"/> | ||
<PackageReference Include="Microsoft.AspNetCore.App"/> | ||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.0"/> | ||
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2"/> | ||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\CheckoutSDK.Extensions.Microsoft\CheckoutSDK.Extensions.Microsoft.csproj" /> | ||
<ProjectReference Include="..\..\src\CheckoutSDK\CheckoutSDK.csproj"/> | ||
<ProjectReference Include="..\..\src\CheckoutSDK.Extensions.Microsoft\CheckoutSDK.Extensions.Microsoft.csproj"/> | ||
</ItemGroup> | ||
</Project> |
1 change: 0 additions & 1 deletion
1
samples/CheckoutSdk.SampleApp/Controllers/PaymentsController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
samples/CheckoutSdk.SampleApp/CustomCkoHttpClientFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Net.Http; | ||
|
||
namespace Checkout.SampleApp | ||
{ | ||
public class CustomCkoHttpClientFactory : IHttpClientFactory | ||
{ | ||
private readonly System.Net.Http.IHttpClientFactory _msHttpClientFactory; | ||
|
||
public CustomCkoHttpClientFactory(System.Net.Http.IHttpClientFactory msHttpClientFactory) | ||
{ | ||
_msHttpClientFactory = msHttpClientFactory; | ||
} | ||
|
||
public HttpClient CreateClient() | ||
{ | ||
return _msHttpClientFactory.CreateClient(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Checkout.Payments | ||
{ | ||
/// <summary> | ||
/// Information related to the processing of a payment action | ||
/// </summary> | ||
public class ActionProcessingResponse : ProcessingResponse | ||
{ | ||
/// <summary> | ||
/// Gets or sets the ARN generated during the processing of captures and refunds | ||
/// </summary> | ||
public string AcquirerReferenceNumber { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Checkout.Payments | ||
{ | ||
/// <summary> | ||
/// Information related to the processing of the payment | ||
/// </summary> | ||
public class ProcessingResponse | ||
{ | ||
/// <summary> | ||
/// Gets or sets the retrieval reference number - a unique identifier for the authorization that is submitted to the card scheme during processing | ||
/// </summary> | ||
/// <value></value> | ||
public string RetrievalReferenceNumber { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier for the transaction generated by the acquirer | ||
/// </summary> | ||
public string AcquirerTransactionId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters