2.0.1 • Published 1 year ago

pointer-wallet v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Pointer Wallet Node.js Library

Installing

npm install pointer-wallet
# or
yarn add pointer-wallet

Documentation

Usage

!NOTE The package needs a secret key to configure, which you can get at Pointer Wallet Dashboard

import { Pointer } from "pointer-wallet";
const pointerPayment = new Pointer(process.env.POINTER_SECRET_KEY);

class PointerServices {
  static async createOrder() {
    await pointerPayment.createPayment({
      amount: 500000,
      currency: "VND",
      message: "Payment with Pointer",
      userID: "uuid-123",
      orderID: "uuid-123",
      returnUrl: "string",
      orders: [
        {
          name: "Apple",
          image: "url",
          description: "Apple apple",
          quantity: 10,
          price: 25000,
        },
        {
          name: "Coconut",
          image: "url",
          description: "Coconut coconut, i need it",
          quantity: 10,
          price: 25000,
        },
      ],
    });
  }
}

Read more

1.0.9

1 year ago

2.0.1

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago