GithubHelp home page GithubHelp logo

astiskala / adyen-dotnet-api-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adyen/adyen-dotnet-api-library

0.0 1.0 0.0 4.44 MB

Adyen API Library for .NET

License: MIT License

C# 99.94% HTML 0.06%

adyen-dotnet-api-library's Introduction

Adyen dotnet API Library

nuget nuget .NET Core

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
  • marketpay account
  • marketpay fund
  • Terminal API (Local and Cloud based)

Requirements

  • 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

Installation

Vagrant setup

  • Prerequisites virtualbox and vagrant
  • Run the following commands in the root folder to setup vagrant
vagrant up
vagrant ssh
  • Run the library tests
cd adyen-dotnet-api-library
dotnet build
dotnet test

Usage

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);

Documentation

Contributing

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.

Support

If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our support team.

Licence

MIT license. For more information, see the LICENSE file.

adyen-dotnet-api-library's People

Contributors

adyen-gc avatar alexandrosmor avatar chrishg-ticketer avatar dependabot-preview[bot] avatar dependabot[bot] avatar gtodde avatar guibranco avatar haydnchapman avatar haydnchapman-pg avatar jimmah avatar joachiml avatar kadobot avatar karol-gro avatar kzkzg avatar lancergr avatar markybry avatar martinsrenato avatar polskydev avatar recio avatar renovate-bot avatar rikterbeek avatar robertftenbosch avatar robinsrs avatar rooque avatar ryanoneill1970 avatar samiris avatar skolbin-ssi avatar sn185205 avatar thespy avatar viktorbergmanstar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.