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

/@darkpos/payment/

    Package Sidebar

    Install

    npm i @darkpos/payment

    Weekly Downloads

    31

    Version

    1.0.5

    License

    ISC

    Unpacked Size

    40.3 kB

    Total Files

    29

    Last publish

    Collaborators

    • darkpos-dev
    • jeanlescure