dark-payment
v0.1.10
Published
Provide payment client
Downloads
26
Readme
Dark-Payment.
Start service
$ npm i dark-payment
1. Create an instance of payment client
import PaymentClient from 'dark-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));