@sastatesla/payment-gateway-sdk
Version:
A unified interface for integrating multiple payment providers (e.g., Razorpay, Cashfree) in your Node.js application.
14 lines • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsePaymentManagerConfig = parsePaymentManagerConfig;
const sdkResponse_1 = require("./sdkResponse");
const validation_1 = require("../validations/validation");
function parsePaymentManagerConfig(input) {
const { value, error } = validation_1.paymentManagerConfigSchema.validate(input || {});
if (error)
throw (0, sdkResponse_1.APIError)({
message: `[Configuration Error] ${error.message}`
});
return value;
}
//# sourceMappingURL=inputParser.js.map