New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tikkie-checkout

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tikkie-checkout

TypeScript implementation of the Tikkie Fast Checkout API.

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js Tikkie Checkout API

Easily create payment requests through Tikkie

Unofficial JavaScript implementation of the Tikkie Fast Checkout API.

Installation

npm install tikkie-checkout

Usage

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

Keywords

FAQs

Package last updated on 22 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc