ts-midtrans-client
Version:
This library is an UNOFFICIAL TypeScript version of the Midtrans Client - Node.js.
17 lines (16 loc) • 588 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class SnapBiConfig {
static getBaseUrl() {
return this.isProduction
? this.SNAP_BI_PRODUCTION_BASE_URL
: this.SNAP_BI_SANDBOX_BASE_URL;
}
}
// Static properties for configuration values
SnapBiConfig.isProduction = false;
SnapBiConfig.enableLogging = false;
// Constants for base URLs
SnapBiConfig.SNAP_BI_SANDBOX_BASE_URL = 'https://merchants.sbx.midtrans.com';
SnapBiConfig.SNAP_BI_PRODUCTION_BASE_URL = 'https://merchants.midtrans.com';
exports.default = SnapBiConfig;