# adyen-api-js

> Operations_about_payments_recurring_and_payout

Latest version **1.30.4** (published 2017-12-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install adyen-api-js
pnpm add adyen-api-js
yarn add adyen-api-js
bun add adyen-api-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.30.4 |
| Published | 2017-12-15 |
| First published | 2017-03-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Travelcar |
| Maintainers | barhoumio, mathpere |
| Keywords | adyen, api, api-client, nodejs, swagger |

## Links

- npm: https://www.npmjs.com/package/adyen-api-js
- Repository: https://github.com/travelcar/adyen-api-js
- Homepage: https://github.com/travelcar/adyen-api-js#readme
- Issues: https://github.com/travelcar/adyen-api-js/issues
- npm.io page: https://npm.io/package/adyen-api-js

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) 3.5.2

## Recent versions

- 1.30.4 (latest) — 2017-12-15
- 1.30.2 — 2017-12-08
- 1.30.1 — 2017-10-30
- 1.30.0 — 2017-09-29
- 1.25.4 — 2017-08-10
- 1.25.3 — 2017-08-09
- 1.25.2 — 2017-08-09
- 1.25.1 — 2017-04-20
- 1.25.0 — 2017-04-19
- 1.18.1 — 2017-03-07

## README

# adyen-api-js

AdyenApiJs - JavaScript client for adyen-api-js
Operations about payments, recurring and payout
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 30
- Package version: 1.30.4
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install adyen-api-js --save
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing 
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

Finally, switch to the directory you want to use your adyen-api-js from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

You should now be able to `require('adyen-api-js')` in javascript files from the directory you ran the last 
command above from.

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually 
use this library):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var AdyenApiJs = require('adyen-api-js');

var defaultClient = AdyenApiJs.ApiClient.instance;

// Configure HTTP basic authorization: auth
var auth = defaultClient.authentications['auth'];
auth.username = 'YOUR USERNAME'
auth.password = 'YOUR PASSWORD'

var api = new AdyenApiJs.PaymentApi()

var modificationRequest = new AdyenApiJs.ModificationRequest(); // {ModificationRequest} The Modification Request

api.adjustAuthorisation(modificationRequest).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});


```

## Documentation for API Endpoints

All URIs are relative to *https://pal-test.adyen.com/pal/servlet*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AdyenApiJs.PaymentApi* | [**adjustAuthorisation**](docs/PaymentApi.md#adjustAuthorisation) | **POST** /Payment/v30/adjustAuthorisation | Increase or decrease the authorised amount
*AdyenApiJs.PaymentApi* | [**authorise**](docs/PaymentApi.md#authorise) | **POST** /Payment/v30/authorise | Creates a payment authorisation
*AdyenApiJs.PaymentApi* | [**authorise3d**](docs/PaymentApi.md#authorise3d) | **POST** /Payment/v30/authorise3d | Completes a 3-D Secure payment authorisation
*AdyenApiJs.PaymentApi* | [**cancel**](docs/PaymentApi.md#cancel) | **POST** /Payment/v30/cancel | Cancels a payment authorisation
*AdyenApiJs.PaymentApi* | [**cancelOrRefund**](docs/PaymentApi.md#cancelOrRefund) | **POST** /Payment/v30/cancelOrRefund | Disable a stored payment detail
*AdyenApiJs.PaymentApi* | [**capture**](docs/PaymentApi.md#capture) | **POST** /Payment/v30/capture | Captures a payment authorisation
*AdyenApiJs.PaymentApi* | [**refund**](docs/PaymentApi.md#refund) | **POST** /Payment/v30/refund | Refunds a payment
*AdyenApiJs.PayoutApi* | [**confirm**](docs/PayoutApi.md#confirm) | **POST** /Payout/v30/confirmThirdParty | Confirm a payout
*AdyenApiJs.PayoutApi* | [**decline**](docs/PayoutApi.md#decline) | **POST** /Payout/v30/declineThirdParty | Decline a payout
*AdyenApiJs.PayoutApi* | [**storeDetailAndSubmit**](docs/PayoutApi.md#storeDetailAndSubmit) | **POST** /Payout/v30/storeDetailAndSubmitThirdParty | Store the payouts details and make a payout request
*AdyenApiJs.RecurringApi* | [**disable**](docs/RecurringApi.md#disable) | **POST** /Recurring/v30/disable | Disable a stored payment detail
*AdyenApiJs.RecurringApi* | [**listRecurringDetails**](docs/RecurringApi.md#listRecurringDetails) | **POST** /Recurring/v30/listRecurringDetails | Retrieves stored payment details for a shopper


## Documentation for Models

 - [AdyenApiJs.Address](docs/Address.md)
 - [AdyenApiJs.Amount](docs/Amount.md)
 - [AdyenApiJs.AuthenticationResponse](docs/AuthenticationResponse.md)
 - [AdyenApiJs.BankAccount](docs/BankAccount.md)
 - [AdyenApiJs.BrowserInfo](docs/BrowserInfo.md)
 - [AdyenApiJs.Card](docs/Card.md)
 - [AdyenApiJs.ConfirmOrDeclineRequest](docs/ConfirmOrDeclineRequest.md)
 - [AdyenApiJs.ConfirmOrDeclineResult](docs/ConfirmOrDeclineResult.md)
 - [AdyenApiJs.Contract](docs/Contract.md)
 - [AdyenApiJs.DirectoryResponse](docs/DirectoryResponse.md)
 - [AdyenApiJs.DisableRequest](docs/DisableRequest.md)
 - [AdyenApiJs.DisableResult](docs/DisableResult.md)
 - [AdyenApiJs.Error](docs/Error.md)
 - [AdyenApiJs.ErrorType](docs/ErrorType.md)
 - [AdyenApiJs.EventCode](docs/EventCode.md)
 - [AdyenApiJs.ForexQuote](docs/ForexQuote.md)
 - [AdyenApiJs.FraudCheckResult](docs/FraudCheckResult.md)
 - [AdyenApiJs.FraudResult](docs/FraudResult.md)
 - [AdyenApiJs.Gender](docs/Gender.md)
 - [AdyenApiJs.Installments](docs/Installments.md)
 - [AdyenApiJs.ModificationRequest](docs/ModificationRequest.md)
 - [AdyenApiJs.ModificationResult](docs/ModificationResult.md)
 - [AdyenApiJs.ModificationResultResponse](docs/ModificationResultResponse.md)
 - [AdyenApiJs.Name](docs/Name.md)
 - [AdyenApiJs.NotificationItems](docs/NotificationItems.md)
 - [AdyenApiJs.NotificationRequest](docs/NotificationRequest.md)
 - [AdyenApiJs.NotificationRequestItemDetails](docs/NotificationRequestItemDetails.md)
 - [AdyenApiJs.NotificationResult](docs/NotificationResult.md)
 - [AdyenApiJs.PaymentRequest](docs/PaymentRequest.md)
 - [AdyenApiJs.PaymentRequest3d](docs/PaymentRequest3d.md)
 - [AdyenApiJs.PaymentResult](docs/PaymentResult.md)
 - [AdyenApiJs.PayoutEntityType](docs/PayoutEntityType.md)
 - [AdyenApiJs.PayoutResultCodeType](docs/PayoutResultCodeType.md)
 - [AdyenApiJs.Recurring](docs/Recurring.md)
 - [AdyenApiJs.RecurringDetail](docs/RecurringDetail.md)
 - [AdyenApiJs.RecurringDetailReferenceType](docs/RecurringDetailReferenceType.md)
 - [AdyenApiJs.RecurringDetailsRequest](docs/RecurringDetailsRequest.md)
 - [AdyenApiJs.RecurringDetailsResult](docs/RecurringDetailsResult.md)
 - [AdyenApiJs.ResultCode](docs/ResultCode.md)
 - [AdyenApiJs.ShopperInteraction](docs/ShopperInteraction.md)
 - [AdyenApiJs.StoreDetailAndSubmitRequest](docs/StoreDetailAndSubmitRequest.md)
 - [AdyenApiJs.StoreDetailAndSubmitResult](docs/StoreDetailAndSubmitResult.md)
 - [AdyenApiJs.ThreeDSecureData](docs/ThreeDSecureData.md)


## Documentation for Authorization


### auth

- **Type**: HTTP basic authentication

---
_Source: https://npm.io/package/adyen-api-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
