@darkpos/payment

1.0.5 • Public • Published

@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));

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.560latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.560
1.0.40
1.0.30
1.0.20
1.0.10

Package Sidebar

Install

npm i @darkpos/payment

Weekly Downloads

48

Version

1.0.5

License

ISC

Unpacked Size

40.3 kB

Total Files

29

Last publish

Collaborators

  • darkpos-dev
  • jeanlescure