# tikkie-checkout

> TypeScript implementation of the Tikkie Fast Checkout API.

Latest version **1.0.10** (published 2020-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install tikkie-checkout
pnpm add tikkie-checkout
yarn add tikkie-checkout
bun add tikkie-checkout
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2020-01-03 |
| First published | 2019-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 15.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Toon van Strijp |
| Maintainers | toonvanstrijp |
| Keywords | tikkie, api, payment, checkout, request |

## Links

- npm: https://www.npmjs.com/package/tikkie-checkout
- Repository: https://github.com/ToonvanStrijp/node-tikkie-checkout
- Issues: https://github.com/ToonvanStrijp/node-tikkie-checkout/issues
- npm.io page: https://npm.io/package/tikkie-checkout

## Dependencies (3)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [typescript](https://npm.io/package/typescript.md) ^3.3.3
- [query-string](https://npm.io/package/query-string.md) ^6.9.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.10 (latest) — 2020-01-03
- 1.0.9 — 2019-12-29
- 1.0.8 — 2019-12-29
- 1.0.7 — 2019-12-27
- 1.0.6 — 2019-12-27
- 1.0.5 — 2019-12-27
- 1.0.4 — 2019-02-22
- 1.0.3 — 2019-02-21
- 1.0.2 — 2019-02-21
- 1.0.1 — 2019-02-21
- 1.0.0 — 2019-02-21

## README

# Node.js Tikkie Checkout API

**Easily create payment requests through [Tikkie](https://tikkie.me/)**

Unofficial JavaScript implementation of the [Tikkie Fast Checkout API](https://developer.abnamro.com/content/tikkie-fast-checkout).

## Installation
```bash
npm install tikkie-checkout
```

## Usage
```typescript
import {TikkieCheckoutClient, TikkieCheckoutConfig} from 'tikkie-checkout';

const config = new TikkieCheckoutConfig('apiKey', 'merchantToken');
config.loadPrivateKey('path_to_key', 'RS256');

const tikkie = new TikkieCheckoutClient(config);

try {
  
    const createOrderRequest = await tikkie.createOrder({
    referenceId: "some reference", 
    shippingCostsInCents: 690,
    discountInCents: 500,
    currency: "EUR",
    expiration: 1800,
    redirectUrl: "https://www.yourdomain.nl/finishorder/1234",
    notificationUrl: "https://www.yourdomain.nl/1234",
    items: [
      {
        itemName: "Mobile Phone",
        priceInCents: 50000,
        quantity: 1
      }]
    });
    console.log(createOrderRequest);

    const getOrderRequest = await tikkie.getOrder(createOrderRequest.orderToken);
    console.log(getOrderRequest);
} catch (err) {
    console.error(err);
}
```

## Inspiration
- [node-tikkie by Daniel Huisman](https://github.com/DanielHuisman/node-tikkie)

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