mpp-sdk
Version:
SDK to talk to the Memento Payments Platform
19 lines (18 loc) • 498 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const base_js_1 = require("./base.js");
class PublicTokenEndpoint extends base_js_1.BaseEndpoint {
/**
* Creates a new temporary public token
* @param data
* @returns the newly created temp public token
*/
create(data) {
return this.doRequest({
url: `/public_tokens`,
method: "POST",
data,
});
}
}
exports.default = PublicTokenEndpoint;