Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@darkpos/payment

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkpos/payment

Payment client

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
decreased by-41.94%
Maintainers
2
Weekly downloads
 
Created
Source

@dark/payment

Install service

$ yarn add @darkpos/payment

1. Create an instance of payment client

  import PaymentClient from '@darkpos/payment';
  const paymentClient = new PaymentClient();

  paymentClient.init(<Provider Config>)
    .then((data) => {
      console.log(data);
    }).catch(err => console.log(err));

2. Call createSingleUseToken or createCustomerToken

  paymentClient.createSingleUseToken(<source>).then(data => console.log(data)).catch(err => console.log(err));
  
	paymentClient.createCustomerToken(
    <customerToken>,
    <source>
  ).then(data => console.log(data)).catch(err => console.log(err));

FAQs

Package last updated on 27 Dec 2023

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