The Adyen API Library for .net framework enables you to work with Adyen APIs, Hosted Payment Pages and Terminal API with any .net application.
The Library supports all APIs under the following services:
- bin lookup
- checkout
- checkout utility
- payments
- payout
- modifications
- recurring
- notifications
- Terminal API (Local and Cloud based)
- Adyen API Library supports .net standard 2.0
- In order for Adyen 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
- Simply download and restore nuget packages
https://www.nuget.org/packages/Adyen/ - or install it from package manager PM> Install-Package Adyen -Version 3.5.0
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 paymentsRequest = new Model.Checkout.PaymentRequest
{
Reference = "Your order number",
Amount = amount,
ReturnUrl = @"https://your-company.com/...",
MerchantAccount = ClientConstants.MerchantAccount,
};
paymentsRequest.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 paymentsResponse = checkout.Payments(paymentsRequest);
- https://docs.adyen.com/developers/development-resources/libraries
- https://docs.adyen.com/developers/checkout/api-integration
We strongly encourage you to join us in contributing to this repository so everyone can benefit from:
- New features and functionality
- Resolved bug fixes and issues
- Any general improvements
Read our contribution guidelines to find out how.
If you have any problems, questions or suggestions, create an issue here or send your inquiry to [email protected].
MIT license. For more information, see the LICENSE file.