@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
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.5 | 60 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.5 | 60 | |
1.0.4 | 0 | |
1.0.3 | 0 | |
1.0.2 | 0 | |
1.0.1 | 0 | |
Package Sidebar
Install
Weekly Downloads