1.1.0 • Published 1 year ago
khipu-client v1.1.0
Khipu Client NodeJS
A NodeJS client for Khipu (non official).
Installation
with NPM:
npm install --save khipu-client
with Yarn:
yarn add khipu-client
Examples
Usage
Generate a new client to make requests:
import { Client } from 'khipu-cliet';
const client = new Client({
receiverId: 'YOUR_RECEIVER_IDENTIFIER_HERE',
secret: 'YOUR_SECRET_HERE'
});
Get banks
// ...
const response = await client.getBanks();
Create a payment
// ...
const response = await client.createPayment({
subject: 'a payment',
currency: 'CLP',
amount: 1000,
// ...
});
Delete a payment
// ...
const response = await client.deletePayment('the-payment-id');
Confirm a payment
// ...
const response = await client.confirmPayment('the-payment-id');
Get a payment by notification token
// ...
const response = await client.getPaymentByNotificationToken(
'the-notification-token'
);
Create a receiver
// ...
const response = await client.createReceiver({
admin_first_name: '...',
admin_last_name: '...',
admin_email: '...',
country_code: '...',
business_identifier: '...',
business_category: '...',
business_name: '...',
business_phone: '...',
business_address_line_1: '...',
business_address_line_2: '...',
business_address_line_3: '...',
contact_full_name: '...',
contact_job_title: '...',
contact_email: '...',
contact_phone: '...',
// ...
});
1.1.0
1 year ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-RC.4
4 years ago
1.0.0-RC.2
4 years ago
1.0.0-RC.3
4 years ago
1.0.0-RC.1
4 years ago
1.0.0-RC
4 years ago