Socket
Socket
Sign inDemoInstall

@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


Version published
Weekly downloads
65
decreased by-16.67%
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 05 Jan 2024

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