tempnumber-client
Version:
temp-number.org SMS Typescript client
22 lines (21 loc) • 611 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Payments = void 0;
const base_1 = require("../base");
class Payments extends base_1.Base {
async createStripePayment(amount, os, userAgent) {
const response = await this.apiCall('/payments/stripe', {
amount,
os,
userAgent
}, 'post');
return response.data;
}
async getStripePurchaseStatus(id) {
const response = await this.apiCall('/payments/stripe', {
id
});
return response.data;
}
}
exports.Payments = Payments;