All Projects → Adyen → adyen-dotnet-api-library

Adyen / adyen-dotnet-api-library

Licence: MIT License
Adyen API Library for .NET

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to adyen-dotnet-api-library

adyen-python-api-library
Adyen API Library for Python
Stars: ✭ 41 (-40.58%)
Mutual labels:  payment, adyen, api-client, payments, payment-gateway, payment-integration, api-library
adyen-node-api-library
Adyen API Library for Node.js
Stars: ✭ 82 (+18.84%)
Mutual labels:  payment, adyen, payment-gateway, payment-integration, api-library
adyen-salesforce-commerce-cloud
Salesforce Commerce Cloud (formerly Demandware)
Stars: ✭ 63 (-8.7%)
Mutual labels:  payment, adyen, payments, payment-gateway, payment-integration
python-daraja
Python Wrapper for interacting with the MPESA Daraja API. More Features to be implemented
Stars: ✭ 20 (-71.01%)
Mutual labels:  payment, payments, payment-gateway, payment-integration
adyen-hybris
Adyen Payment plugin for Hybris
Stars: ✭ 23 (-66.67%)
Mutual labels:  payment, adyen, payment-gateway, payment-integration
Adyen Php Api Library
Adyen API Library for PHP
Stars: ✭ 93 (+34.78%)
Mutual labels:  payment, api-client, payments, payment-gateway
paymentgateway
Dokumentace ČSOB platební brány a jejího eAPI pro platby platebními kartami, Apple Pay, mallpay a platebními tlačítky ČSOB.
Stars: ✭ 104 (+50.72%)
Mutual labels:  payment, payments, payment-gateway, payment-integration
cybersource-android-sdk
The CyberSource InApp SDK enables developers to simply and securely incorporate mobile payments into their Android applications.
Stars: ✭ 25 (-63.77%)
Mutual labels:  payment, payments, payment-gateway, payment-integration
Adyen Ruby Api Library
Adyen API Library for Ruby
Stars: ✭ 35 (-49.28%)
Mutual labels:  payment, api-client, payments, payment-gateway
cybersource-sdk-java
Java SDK for CyberSource Simple Order API
Stars: ✭ 44 (-36.23%)
Mutual labels:  payment, payments, payment-gateway, payment-integration
Laravel Paddle
Paddle.com API integration for Laravel with support for webhooks/events
Stars: ✭ 132 (+91.3%)
Mutual labels:  payment, payments, payment-gateway
Sdk Dotnet
.Net SDK for Authorize.Net API
Stars: ✭ 124 (+79.71%)
Mutual labels:  payment, payments, payment-gateway
Paynow-NodeJS-SDK
NodeJS SDK for Zimbabwe's leading payments gateway, Paynow
Stars: ✭ 23 (-66.67%)
Mutual labels:  payment, payment-gateway, payment-integration
sep-pay
Pay.ir Payment Package for Laravel 5.3+
Stars: ✭ 17 (-75.36%)
Mutual labels:  payment, payments, payment-gateway
ccashcow
💰 Accept cards & crypto. Payments so easy a cow could do it.
Stars: ✭ 40 (-42.03%)
Mutual labels:  payment, payment-gateway, payment-integration
wc-moldovaagroindbank
WooCommerce maib Moldova Agroindbank Payment Gateway
Stars: ✭ 13 (-81.16%)
Mutual labels:  payment, payment-gateway, payment-integration
omnipay-2checkout
2Checkout driver for the Omnipay PHP payment processing library
Stars: ✭ 25 (-63.77%)
Mutual labels:  payment, payment-gateway, payment-integration
Openfintech
Opensource FinTech standards & payment provider data
Stars: ✭ 87 (+26.09%)
Mutual labels:  payment, payments, payment-gateway
Gringotts
A complete payment library for Elixir and Phoenix Framework
Stars: ✭ 396 (+473.91%)
Mutual labels:  payment, payments, payment-gateway
react-native-payumoney
React Native Payumoney (Android/IOS)
Stars: ✭ 18 (-73.91%)
Mutual labels:  payment, payment-gateway, payment-integration

Adyen dotnet API Library

nuget nuget .NET Core

This is the officially supported dotnet library for using Adyen's APIs.

Integration

The library supports all APIs under the following services:

  • Checkout API: Our latest integration for accepting online payments. Current supported version: v68
  • Payments API: Our classic integration for online payments. Current supported version: v51
  • Recurring API: Endpoints for managing saved payment details. Current supported version: v49
  • Payouts API: Endpoints for sending funds to your customers. Current supported version: v51
  • Adyen BinLookup API: Endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. Current supported version: v50
  • Utility API: This operation takes the origin domains and returns a JSON object containing the corresponding origin keys for the domains. Current supported version: v67
  • Platforms APIs: Set of APIs when using Adyen for Platforms.
  • Cloud-based Terminal API: Our point-of-sale integration.
  • Local-based Terminal API: Our point-of-sale integration.
  • POS Terminal Management API: Endpoints for managing your point-of-sale payment terminals v1

For more information, refer to our documentation or the API Explorer.

Prerequisites

  • Adyen test account
  • API key. For testing, your API credential needs to have the API PCI Payments role.
  • Adyen dotnet API Library supports .net standard 2.0
  • In order for Adyen dotnet API Library to support local terminal api certificate validation the application should be set to .net core 2.1 and above or .net framework 4.6.1 and above

Installation

Simply download and restore nuget packages https://www.nuget.org/packages/Adyen/ or install it from package manager

PM> Install-Package Adyen -Version x.x.x

Using the library

General use with API key

In order to submit http request to Adyen API you need to initialize the client. The following example makes a checkout payment request:

// Create a paymentsRequest
var amount = new Model.Checkout.Amount("USD", 1000);
var paymentRequest = new Model.Checkout.PaymentRequest
{
      Reference = "Your order number",
      Amount = amount,
      ReturnUrl = @"https://your-company.com/...",
      MerchantAccount = ClientConstants.MerchantAccount,
};
paymentRequest.AddCardData("4111111111111111", "10", "2020", "737", "John Smith");

//Create the http client
var client = new Client("YOUR-XAPI-KEY", Model.Enum.Environment.Test);//or Model.Enum.Environment.Live
var checkout = new Checkout(client);
//Make the call to the service. This example code makes a call to /payments
var paymentResponse = checkout.Payments(paymentRequest);

Example integration

For a closer look at how our dotnet library works, clone our ASP .net example integration. This includes commented code, highlighting key features and concepts, and examples of API calls that can be made using the library.

Running the tests

Navigate to adyen-dotnet-api-library folder and run the following commands.

dotnet build
dotnet test

Using the Cloud API for post

In order to submit POS request with Cloud API you need to initialize the client with the Endpoints that it is closer to your region. The Endpoints are available as contacts in ClientConfig For more information please read our documentation

//Example for EU based Endpoint Syncronous
var config = new Config
  {
    XApiKey = "Your merchant XAPI key",
    CloudApiEndPoint = ClientConfig.CloudApiEndPointEULive
  };
var client = new Client(config);

Contributing

We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements. Have a look at our contributing guidelines to find out how to raise a pull request.

Support

If you have a feature request, or spotted a bug or a technical problem, create an issue here.

For other questions, contact our Support Team.

Licence

This repository is available under the MIT license.

See also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].