FirstData.Gateway
1.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FirstData.Gateway --version 1.2.0
NuGet\Install-Package FirstData.Gateway -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FirstData.Gateway" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FirstData.Gateway --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FirstData.Gateway, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FirstData.Gateway as a Cake Addin
#addin nuget:?package=FirstData.Gateway&version=1.2.0
// Install FirstData.Gateway as a Cake Tool
#tool nuget:?package=FirstData.Gateway&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FirstApiClient C# library
<a name="frameworks-supported"></a>
Frameworks supported
- .NET 2.0
<a name="dependencies"></a>
Dependencies
- Mono compiler
- Newtonsoft.Json.11.0.2
- RestSharp.Net2.1.1.11
<a name="installation"></a>
Installation
Install Via NuGet
-OR-
Local
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh compile-mono.sh
Include the DLL (under the bin
folder) in the C# project
Use the namespaces:
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using Org.Simple;
<a name="getting-started"></a>
Getting Started
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
using IO.Simple;
namespace Example
{
public class Example
{
public void main()
{
string apiKey = "Your API Key Here";
string apiSecret = "Your API Secret Here";
MerchantCredentials credentials = new MerchantCredentials(apiKey, apiSecret);
Gateway gateway = Gateway.create(credentials);
PaymentMethod pMethod = new PaymentMethod();
Expiration expiryDate = new Expiration();
PaymentCard card = new PaymentCard();
expiryDate.Month = "12";
expiryDate.Year = "25";
card.ExpiryDate = expiryDate;
card.Number = "4111111111111111";
pMethod.PaymentCard = card;
pMethod.Type = transaction_params.payload.paymentMethod.type;
PrimaryTransaction trans = new PrimaryTransaction
{
Amount = GetAmount(),
StoreId = StoreId(),
PaymentMethod = pMethod,
TransactionType = transaction_params.payload.transactionType
};
ApiResponse response = gateway.PrimaryPaymentTransaction(
payload
);
Console.WriteLine(response.JsonData);
}
}
}
<a name="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints
All URIs are relative to *https://cert.api.firstdata.com/gateway/v2*
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Newtonsoft.Json (>= 11.0.2)
- RestSharp.Net2 (>= 1.1.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.14.0 | 15,828 | 11/19/2021 |
1.13.0 | 1,480 | 9/17/2021 |
1.12.0 | 390 | 6/30/2021 |
1.11.1 | 345 | 5/11/2021 |
1.11.0 | 531 | 4/26/2021 |
1.10.0 | 2,153 | 2/17/2021 |
1.9.0 | 656 | 11/12/2020 |
1.8.0 | 539 | 9/11/2020 |
1.7.1 | 458 | 8/20/2020 |
1.7.0 | 594 | 7/10/2020 |
1.6.0 | 1,567 | 5/12/2020 |
1.5.0 | 542 | 2/11/2020 |
1.4.2 | 1,166 | 10/22/2019 |
1.4.1 | 516 | 10/17/2019 |
1.4.0 | 508 | 10/7/2019 |
1.3.0 | 613 | 8/6/2019 |
1.2.0 | 5,618 | 6/18/2019 |
1.1.0 | 592 | 3/22/2019 |
1.0.0 | 733 | 10/25/2018 |
Update to API version 6.6.