FirstData.Gateway
1.1.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.1.0
NuGet\Install-Package FirstData.Gateway -Version 1.1.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.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FirstData.Gateway" Version="1.1.0" />
<PackageReference Include="FirstData.Gateway" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FirstData.Gateway --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FirstData.Gateway, 1.1.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.
#:package FirstData.Gateway@1.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FirstData.Gateway&version=1.1.0
#tool nuget:?package=FirstData.Gateway&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FirstApiClient C# library
Frameworks supported
- .NET 2.0
Dependencies
- Mono compiler
- Newtonsoft.Json.11.0.2
- RestSharp.Net2.1.1.11
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;
Getting Started
using System;
using System.Diagnostics;
using Newtonsoft.Json;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using Org.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);
string payload = "{\"amount\":{\"currency\":\"USD\",\"total\":\"12.10\"},\"paymentMethod\":{\"paymentCard\":{\"expiryDate\":{\"month\":\"12\",\"year\":\"21\"},\"number\":\"4111111111111111\"},\"type\":\"PAYMENT_CARD\"},\"transactionType\":\"SALE\"}";
PrimaryTransaction trans = JsonConvert.DeserializeObject<PrimaryTransaction>(payload);
ApiResponse response = gateway.PrimaryPaymentTransaction(
trans
);
Console.WriteLine(response.JsonData);
}
}
}
Documentation for API Endpoints
All URIs are relative to https://cert.api.firstdata.com/gateway
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AuthenticationApi | V1AuthenticationAccessTokensPost | POST /v1/authentication/access-tokens | Generate an access token for user authentication. |
| CardInfoLookupApi | CardInfoLookup | POST /v1/card-information | Card information lookUp |
| CardVerificationApi | VerifyCard | POST /v1/card-verification | Verify a payment card. |
| CurrencyConversionApi | GetExchangeRate | POST /v1/exchange-rates | Generate dynamic currency conversion transactions |
| FraudDetectApi | ScoreOnly | POST /v1/fraud/score-only | Score a transaction for fraud. |
| OrderApi | OrderInquiry | GET /v1/orders/{order-id} | Retrieve the state of an order |
| OrderApi | OrderPostAuth | POST /v1/orders/{order-id}/postauth | Capture/complete an already existing order. |
| OrderApi | OrderReturnTransaction | POST /v1/orders/{order-id}/return | Return/refund an order. |
| PaymentApi | FinalizeSecureTransaction | PATCH /v1/payments/{transaction-id} | Update a 3DSecure or UnionPay payment and continue processing. |
| PaymentApi | PerformPaymentPostAuthorisation | POST /v1/payments/{transaction-id}/postauth | Capture/complete a transaction. |
| PaymentApi | PrimaryPaymentTransaction | POST /v1/payments | Generate a primary transaction. |
| PaymentApi | ReturnTransaction | POST /v1/payments/{transaction-id}/return | Return/refund a transaction. |
| PaymentApi | TransactionInquiry | GET /v1/payments/{transaction-id} | Retrieve the state of a transaction. |
| PaymentApi | VoidTransaction | POST /v1/payments/{transaction-id}/void | Reverse a previous action on an existing transaction. |
| PaymentSchedulesApi | CancelPaymentSchedule | DELETE /v1/payment-schedules/{order-id} | Cancel a gateway payment schedule. |
| PaymentSchedulesApi | CreatePaymentSchedule | POST /v1/payment-schedules | Use this to create a gateway payment schedule. |
| PaymentSchedulesApi | InquiryPaymentSchedule | GET /v1/payment-schedules/{order-id} | View a gateway payment schedule. |
| PaymentSchedulesApi | UpdatePaymentSchedule | PATCH /v1/payment-schedules/{order-id} | Update a gateway payment schedule. |
| PaymentTokenApi | CreatePaymentToken | POST /v1/payment-tokens | Create a payment token from a payment card. |
| PaymentTokenApi | DeletePaymentToken | DELETE /v1/payment-tokens/{token-id} | Delete a payment token. |
| PaymentURLApi | CreatePaymentUrl | POST /v1/payment-url | Create a payment URL. |
| 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 | 38,123 | 11/19/2021 |
| 1.13.0 | 1,648 | 9/17/2021 |
| 1.12.0 | 566 | 6/30/2021 |
| 1.11.1 | 523 | 5/11/2021 |
| 1.11.0 | 701 | 4/26/2021 |
| 1.10.0 | 2,683 | 2/17/2021 |
| 1.9.0 | 854 | 11/12/2020 |
| 1.8.0 | 722 | 9/11/2020 |
| 1.7.1 | 672 | 8/20/2020 |
| 1.7.0 | 805 | 7/10/2020 |
| 1.6.0 | 1,778 | 5/12/2020 |
| 1.5.0 | 738 | 2/11/2020 |
| 1.4.2 | 1,386 | 10/22/2019 |
| 1.4.1 | 745 | 10/17/2019 |
| 1.4.0 | 717 | 10/7/2019 |
| 1.3.0 | 813 | 8/6/2019 |
| 1.2.0 | 6,001 | 6/18/2019 |
| 1.1.0 | 809 | 3/22/2019 |
| 1.0.0 | 974 | 10/25/2018 |
Update to API version 6.5.