paystack-sdk
Version:
Paystack SDK written in Typescript
40 lines (39 loc) • 1.17 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Verification = void 0;
/**
* ## Verification
* The Verification API allows you perform KYC processes.
*/
class Verification {
constructor(http) {
this.http = http;
}
/**
* #### Resolve Account
* Confirm an account belongs to the right customer
* @param {ResolveAccount} data **Query Param**
*/
async resolveAccount(data) {
return await this.http.get('/bank/resolve', { params: { ...data } });
}
/**
* #### Validate Account
* Confirm the authenticity of a customer's account number
* before sending money
* @param {ValidateAccount} data **Data Param**
*/
async validateAccount(data) {
return await this.http.post('/bank/validate', JSON.stringify(data));
}
/**
* #### Resolve Card BIN
* Get more information about a customer's card
* using the first 6 characters of the card
* @param {string} bin **Path Param**
*/
async resolveCard(bin) {
return await this.http.get(`/decision/bin/${bin}`);
}
}
exports.Verification = Verification;
;