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

idpay-ts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idpay-ts

Simple package to interact with IDPay's v1.1 API

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install idpay-typescript

Intro

This package is written in TypeScript, you can use it in both TypeScript and JavaScript.

Usage

import { IDPay } from "idpay-ts";

const idpay = new IDPay("your-idpay-merchant-code-goes-here", {
  sandbox: true,
  timeout: 5000,
});

(async () => {
  const createdPayment = await idpay.createPayment({
    amount: 1000,
    callback: "https://my-website",
    orderId: "my-order-id",
    description: "This is a description for my payment.",
    payer: {
      emailAddress: "payer@email.com",
      name: "PayerNameGoesHere",
      phoneNumber: "09123456789",
    },
  });

  // Gives out link and id of the created transaction. send customer to 'link'

  const verifiedPayment = await idpay.verifyPayment({
    id: createdPayment.body.id,
    orderId: "my-order-id",
  });
})();

License - MIT

FAQs

Package last updated on 23 May 2021

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