npm package: @isabbah/checkout-node-sdk-v5
Description: API_specification_to_use_the_Orbipay_Checkout_APIs__This_documentation_covers_the_Charge_Management_related_APIs__
Author: orbipay
Latest version: 5.4.0

# orbipay_checkout_ap_is

OrbipayCheckoutApIs - JavaScript client for orbipay_checkout_ap_is
API specification to use the Orbipay-Checkout APIs. This documentation covers the Merchant Account Management and Charge Management related APIs. 
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2017-09-05T12:27:44.174+05:30
- Build package: class 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 orbipay_checkout_ap_is --save
```

#### 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):

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

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

## Getting Started

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

```javascript
var OrbipayCheckoutApIs = require('orbipay_checkout_ap_is');

var api = new OrbipayCheckoutApIs.ChargeApi()

var partnerId = "partnerId_example"; // {String} Unique client Identifier, for example  cli_example5852kw555

var confirmChargeRequest = new OrbipayCheckoutApIs.ConfirmChargeRequest(); // {ConfirmChargeRequest} This JSON contains all the attributes to Confirm Charge.

var opts = { 
  'tokenId': "tokenId_example", // {String} One time usage token issued by Checkout as part of Validate-Charge to confirm the charge or confirm add funding account, for example ctk_av5q525f52m455mf
  'digiSign': "digiSign_example" // {String} Generated Digital Signature for data using private key, for example dyYku51gDp+ieXSQa+oL+0LPNiFDVur6A8z2s/O6r7yI9se4odzQD1Y8pb4jwHFnbwVYKfFQ/tDgFppuphtzQ9QKkL7fOyYwvG9dcWFUT6PUJBpbIecUmxkxaLRvdulcDSnFbHaHDALQUdaelCHsUZxNl06oJhsTLd+2Aa5fMIeYKvguF4O8whB9BqjK9VFSYTmnQgAAUMV+TNv21BTpIkcORNS08h/G9UPR4EYvwOc9xKohC3bkOaZc3qTcvrlCUtg6inhuafafrc7wXDGieXGccY5+dR/FObqcBZEYX9xFDfsHTy485Y4bbgQNUmRWcMxepw/6TthLPlybrYZPCw==
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.confirmCharge(partnerId, confirmChargeRequest, opts, callback);

```

## Documentation for API Endpoints

All URIs are relative to *https://www.orbipay.com/app/opco/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*OrbipayCheckoutApIs.ChargeApi* | [**confirmCharge**](docs/ChargeApi.md#confirmCharge) | **POST** /service/payments/confirm-charge | Confirm Charge
*OrbipayCheckoutApIs.ChargeApi* | [**validateCharge**](docs/ChargeApi.md#validateCharge) | **POST** /public/service/payments/validate-charge/{PARTNER_ID} | Validate Charge
*OrbipayCheckoutApIs.MerchantAccountApi* | [**retrieveMerchantAccount**](docs/MerchantAccountApi.md#retrieveMerchantAccount) | **GET** /public/service/accounts/{PARTNER_ID} | Retrieve Merchant Account


## Documentation for Models

 - [OrbipayCheckoutApIs.AddressInfo](docs/AddressInfo.md)
 - [OrbipayCheckoutApIs.Charge](docs/Charge.md)
 - [OrbipayCheckoutApIs.ConfirmChargeRequest](docs/ConfirmChargeRequest.md)
 - [OrbipayCheckoutApIs.CustomerAccountInfo](docs/CustomerAccountInfo.md)
 - [OrbipayCheckoutApIs.CustomerInfo](docs/CustomerInfo.md)
 - [OrbipayCheckoutApIs.Error](docs/Error.md)
 - [OrbipayCheckoutApIs.ErrorsResponse](docs/ErrorsResponse.md)
 - [OrbipayCheckoutApIs.FundingAccountInfo](docs/FundingAccountInfo.md)
 - [OrbipayCheckoutApIs.FundingAccountMinimalInfo](docs/FundingAccountMinimalInfo.md)
 - [OrbipayCheckoutApIs.MerchantAccount](docs/MerchantAccount.md)
 - [OrbipayCheckoutApIs.ValidateChargeRequest](docs/ValidateChargeRequest.md)
 - [OrbipayCheckoutApIs.ValidateChargeTokenResponse](docs/ValidateChargeTokenResponse.md)


## Documentation for Authorization

 All endpoints do not require authorization.