pointer-wallet
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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,
        },
      ],
    });
  }
}

Package Sidebar

Install

npm i pointer-wallet

Weekly Downloads

68

Version

2.0.1

License

ISC

Unpacked Size

5.84 kB

Total Files

4

Last publish

Collaborators

  • nguynthuhigh