paystack-sdk
Version:
Paystack SDK written in Typescript
21 lines (20 loc) • 574 B
JavaScript
;
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;