UNPKG

paymaya-node-sdk

Version:

Node.js Client for Paymaya API

49 lines (37 loc) 1.06 kB
function PaymayaSDK() { this.ENVIRONMENT = { PRODUCTION: "PRODUCTION", SANDBOX: "SANDBOX" }; } PaymayaSDK.prototype = { initCheckout: function(publicApiKey, secretApiKey, environment) { this._checkoutPublicApiKey = publicApiKey; this._checkoutSecretApiKey = secretApiKey; this._checkoutEnvironment = environment; }, initPayments: function(publicApiKey, secretApiKey, environment) { this._paymentsPublicApiKey = publicApiKey; this._paymentsSecretApiKey = secretApiKey; this._paymentsEnvironment = environment; }, getCheckoutPublicApiKey: function() { return this._checkoutPublicApiKey; }, getCheckoutSecretApiKey: function() { return this._checkoutSecretApiKey; }, getCheckoutEnvironment: function() { return this._checkoutEnvironment; }, getPaymentsPublicApiKey: function() { return this._paymentsPublicApiKey; }, getPaymentsSecretApiKey: function() { return this._paymentsSecretApiKey; }, getPaymentsEnvironment: function() { return this._paymentsEnvironment; } } module.exports = new PaymayaSDK();