UNPKG

paystack-sdk

Version:
21 lines (20 loc) 574 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApplePay = void 0; class ApplePay { constructor(http) { this.http = http; } async registerDomain(domainName) { return await this.http.post('/apple-pay/domain', JSON.stringify({ domainName })); } async listDomains() { return await this.http.get('/apple-pay'); } async unregisterDomain(domainName) { return await this.http.delete('/apple-pay', { params: { domainName }, }); } } exports.ApplePay = ApplePay;