Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: paytm/paytm-pg-node-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.5
Choose a base ref
...
head repository: paytm/paytm-pg-node-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 2 commits
  • 92 files changed
  • 2 contributors

Commits on Dec 20, 2022

  1. 1.0.5

    Rahul Bisht authored and Rahul Bisht committed Dec 20, 2022

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    addaleax Anna Henningsen
    Copy the full SHA
    bdf24fc View commit details

Commits on Jan 13, 2025

  1. PPSL Update

    csgarsarippsl committed Jan 13, 2025
    Copy the full SHA
    e69c021 View commit details
Showing with 501 additions and 297 deletions.
  1. +1 −1 VERSION
  2. +15 −4 dist/com/index.js
  3. +16 −5 dist/com/paytm/index.js
  4. +15 −4 dist/com/paytm/merchant/index.js
  5. +1 −0 dist/com/paytm/merchant/models/PaymentDetail.js
  6. +1 −0 dist/com/paytm/merchant/models/PaymentStatusDetail.js
  7. +1 −0 dist/com/paytm/merchant/models/RefundDetail.js
  8. +1 −0 dist/com/paytm/merchant/models/RefundStatusDetail.js
  9. +1 −0 dist/com/paytm/merchant/models/SDKResponse.js
  10. +19 −8 dist/com/paytm/merchant/models/index.js
  11. +2 −1 dist/com/paytm/pg/constants/Config.js
  12. +4 −3 dist/com/paytm/pg/constants/ErrorConstants.js
  13. +3 −2 dist/com/paytm/pg/constants/LibraryConstants.js
  14. +1 −2 dist/com/paytm/pg/constants/MerchantProperties.d.ts
  15. +10 −13 dist/com/paytm/pg/constants/MerchantProperties.js
  16. +18 −7 dist/com/paytm/pg/constants/index.js
  17. +2 −1 dist/com/paytm/pg/enums/EChannelId.js
  18. +8 −7 dist/com/paytm/pg/enums/EnumCurrency.js
  19. +2 −1 dist/com/paytm/pg/enums/UserSubWalletType.js
  20. +17 −6 dist/com/paytm/pg/enums/index.js
  21. +1 −0 dist/com/paytm/pg/exceptions/SDKException.js
  22. +15 −4 dist/com/paytm/pg/exceptions/index.js
  23. +22 −11 dist/com/paytm/pg/index.js
  24. +1 −0 dist/com/paytm/pg/models/ChildTransaction.js
  25. +1 −0 dist/com/paytm/pg/models/ExtendInfo.js
  26. +1 −0 dist/com/paytm/pg/models/GoodsInfo.js
  27. +1 −0 dist/com/paytm/pg/models/Money.js
  28. +1 −0 dist/com/paytm/pg/models/PaymentMode.js
  29. +1 −0 dist/com/paytm/pg/models/ShippingInfo.js
  30. +1 −0 dist/com/paytm/pg/models/UserInfo.js
  31. +21 −10 dist/com/paytm/pg/models/index.js
  32. +3 −1 dist/com/paytm/pg/process/Payment.js
  33. +3 −1 dist/com/paytm/pg/process/Refund.js
  34. +3 −1 dist/com/paytm/pg/process/Request.js
  35. +16 −5 dist/com/paytm/pg/process/index.js
  36. +1 −0 dist/com/paytm/pg/request/BaseHeader.js
  37. +1 −1 dist/com/paytm/pg/request/ExtraParameterMap.d.ts
  38. +1 −0 dist/com/paytm/pg/request/ExtraParameterMap.js
  39. +2 −2 dist/com/paytm/pg/request/InitiateTransactionRequest.d.ts
  40. +1 −0 dist/com/paytm/pg/request/InitiateTransactionRequest.js
  41. +17 −17 dist/com/paytm/pg/request/InitiateTransactionRequestBody.d.ts
  42. +1 −0 dist/com/paytm/pg/request/InitiateTransactionRequestBody.js
  43. +2 −2 dist/com/paytm/pg/request/NativePaymentStatusRequest.d.ts
  44. +1 −0 dist/com/paytm/pg/request/NativePaymentStatusRequest.js
  45. +3 −3 dist/com/paytm/pg/request/NativePaymentStatusRequestBody.d.ts
  46. +1 −0 dist/com/paytm/pg/request/NativePaymentStatusRequestBody.js
  47. +2 −2 dist/com/paytm/pg/request/NativeRefundStatusRequest.d.ts
  48. +1 −0 dist/com/paytm/pg/request/NativeRefundStatusRequest.js
  49. +1 −0 dist/com/paytm/pg/request/NativeRefundStatusRequestBody.js
  50. +4 −4 dist/com/paytm/pg/request/RefundBaseRequest.d.ts
  51. +1 −0 dist/com/paytm/pg/request/RefundBaseRequest.js
  52. +2 −2 dist/com/paytm/pg/request/RefundInitiateRequest.d.ts
  53. +1 −0 dist/com/paytm/pg/request/RefundInitiateRequest.js
  54. +11 −11 dist/com/paytm/pg/request/RefundInitiateRequestBody.d.ts
  55. +1 −0 dist/com/paytm/pg/request/RefundInitiateRequestBody.js
  56. +4 −4 dist/com/paytm/pg/request/RequestHeader.d.ts
  57. +1 −0 dist/com/paytm/pg/request/RequestHeader.js
  58. +6 −6 dist/com/paytm/pg/request/SecureRequestHeader.d.ts
  59. +1 −0 dist/com/paytm/pg/request/SecureRequestHeader.js
  60. +27 −16 dist/com/paytm/pg/request/index.js
  61. +2 −2 dist/com/paytm/pg/response/AsyncRefundResponse.d.ts
  62. +1 −0 dist/com/paytm/pg/response/AsyncRefundResponse.js
  63. +9 −9 dist/com/paytm/pg/response/AsyncRefundResponseBody.d.ts
  64. +1 −0 dist/com/paytm/pg/response/AsyncRefundResponseBody.js
  65. +2 −2 dist/com/paytm/pg/response/BaseResponseBody.d.ts
  66. +1 −0 dist/com/paytm/pg/response/BaseResponseBody.js
  67. +2 −2 dist/com/paytm/pg/response/InitiateTransactionResponse.d.ts
  68. +1 −0 dist/com/paytm/pg/response/InitiateTransactionResponse.js
  69. +7 −7 dist/com/paytm/pg/response/InitiateTransactionResponseBody.d.ts
  70. +1 −0 dist/com/paytm/pg/response/InitiateTransactionResponseBody.js
  71. +2 −2 dist/com/paytm/pg/response/NativePaymentStatusResponse.d.ts
  72. +1 −0 dist/com/paytm/pg/response/NativePaymentStatusResponse.js
  73. +36 −36 dist/com/paytm/pg/response/NativePaymentStatusResponseBody.d.ts
  74. +1 −0 dist/com/paytm/pg/response/NativePaymentStatusResponseBody.js
  75. +2 −2 dist/com/paytm/pg/response/NativeRefundStatusResponse.d.ts
  76. +1 −0 dist/com/paytm/pg/response/NativeRefundStatusResponse.js
  77. +19 −19 dist/com/paytm/pg/response/NativeRefundStatusResponseBody.d.ts
  78. +1 −0 dist/com/paytm/pg/response/NativeRefundStatusResponseBody.js
  79. +2 −2 dist/com/paytm/pg/response/ResponseHeader.d.ts
  80. +1 −0 dist/com/paytm/pg/response/ResponseHeader.js
  81. +4 −4 dist/com/paytm/pg/response/ResultInfo.d.ts
  82. +1 −0 dist/com/paytm/pg/response/ResultInfo.js
  83. +4 −4 dist/com/paytm/pg/response/SecureResponseHeader.d.ts
  84. +1 −0 dist/com/paytm/pg/response/SecureResponseHeader.js
  85. +26 −15 dist/com/paytm/pg/response/index.js
  86. +1 −0 dist/com/paytm/pg/utils/CommonUtil.js
  87. +4 −2 dist/com/paytm/pg/utils/EncDecUtil.js
  88. +3 −2 dist/com/paytm/pg/utils/LoggingUtil.js
  89. +17 −6 dist/com/paytm/pg/utils/index.js
  90. +15 −4 dist/index.js
  91. +2 −2 package.json
  92. +7 −7 src/com/paytm/pg/constants/MerchantProperties.ts
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.5
1.0.6
19 changes: 15 additions & 4 deletions dist/com/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./paytm"));
__exportStar(require("./paytm"), exports);
21 changes: 16 additions & 5 deletions dist/com/paytm/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./pg"));
__export(require("./merchant"));
__exportStar(require("./pg"), exports);
__exportStar(require("./merchant"), exports);
19 changes: 15 additions & 4 deletions dist/com/paytm/merchant/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./models"));
__exportStar(require("./models"), exports);
1 change: 1 addition & 0 deletions dist/com/paytm/merchant/models/PaymentDetail.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentDetailBuilder = exports.PaymentDetail = void 0;
/**
* This class is used to store all the paymentDetail information
* Paytm\pg\process\Request of initiateTransaction api is translated by paymentDetail object
1 change: 1 addition & 0 deletions dist/com/paytm/merchant/models/PaymentStatusDetail.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentStatusDetailBuilder = exports.PaymentStatusDetail = void 0;
const _NativePaymentStatusRequestBody = require("../../pg/request/NativePaymentStatusRequestBody");
const _MerchantProperties = require("../../pg/constants/MerchantProperties");
/* class: PaymentStatusDetail */
1 change: 1 addition & 0 deletions dist/com/paytm/merchant/models/RefundDetail.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.RefundDetailBuilder = exports.RefundDetail = void 0;
const _RefundInitiateRequestBody = require("../../pg/request/RefundInitiateRequestBody");
const _MerchantProperties = require("../../pg/constants/MerchantProperties");
/**
1 change: 1 addition & 0 deletions dist/com/paytm/merchant/models/RefundStatusDetail.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.RefundStatusDetailBuilder = exports.RefundStatusDetail = void 0;
const _NativeRefundStatusRequestBody = require("../../pg/request/NativeRefundStatusRequestBody");
const _MerchantProperties = require("../../pg/constants/MerchantProperties");
/* class: RefundStatusDetail */
1 change: 1 addition & 0 deletions dist/com/paytm/merchant/models/SDKResponse.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDKResponse = void 0;
/* class: SDKResponse */
class SDKResponse {
/**
27 changes: 19 additions & 8 deletions dist/com/paytm/merchant/models/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./PaymentDetail"));
__export(require("./PaymentStatusDetail"));
__export(require("./RefundDetail"));
__export(require("./RefundStatusDetail"));
__export(require("./SDKResponse"));
__exportStar(require("./PaymentDetail"), exports);
__exportStar(require("./PaymentStatusDetail"), exports);
__exportStar(require("./RefundDetail"), exports);
__exportStar(require("./RefundStatusDetail"), exports);
__exportStar(require("./SDKResponse"), exports);
3 changes: 2 additions & 1 deletion dist/com/paytm/pg/constants/Config.js
Original file line number Diff line number Diff line change
@@ -3,10 +3,12 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Config = void 0;
const _LibraryContants = require("../constants/LibraryConstants");
const _LoggingUtil = require("../utils/LoggingUtil");
class Config {
}
exports.Config = Config;
/**
* @var string
*/
@@ -19,5 +21,4 @@ Config.logLevel = _LoggingUtil.LoggingUtil.LogLevel.INFO;
* @var string
*/
Config.logfile = 'logs/app.log';
exports.Config = Config;
Config.requestId = _LibraryContants.LibraryConstants.NODE_SDK_TEXT + _LibraryContants.LibraryConstants.NODE_SDK_VERSION;
7 changes: 4 additions & 3 deletions dist/com/paytm/pg/constants/ErrorConstants.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorCode = exports.ErrorMessage = exports.ErrorConstants = void 0;
/**
* This class is used to store error constants
* Merchant can update these constants according to his need
@@ -18,10 +19,10 @@ class ErrorConstants {
throw new Error(ErrorConstants.UTILITY_CLASS_EXCEPTION);
}
}
exports.ErrorConstants = ErrorConstants;
ErrorConstants.UTILITY_CLASS_EXCEPTION = "Utility class cannot be instantiated";
// Result Status In case of Failure
ErrorConstants.FAILURE = "failure";
exports.ErrorConstants = ErrorConstants;
/**
* Result messages in case of failure
*/
@@ -36,6 +37,7 @@ class ErrorMessage {
throw new Error(ErrorConstants.UTILITY_CLASS_EXCEPTION);
}
}
exports.ErrorMessage = ErrorMessage;
/** Result message when verify signature returns false */
ErrorMessage.SIGNATURE_VALIDATION_FAILED = "Signature Validation Failed";
/** Result message when any required parameter is missing in api calling */
@@ -46,7 +48,6 @@ ErrorMessage.MISSING_MERCHANT_PROPERTY = "Missing merchant property";
ErrorMessage.JSONSTRING_TO_OBJECT_CONVERSION_FAILED = "JsonString to object conversion failure";
/** Result message when object of expected type is not passed in parameter*/
ErrorMessage.UNEXPECTED_OBJECT_PASSED_AS_PARAM = "Object of unexpected type is passed as parameter";
exports.ErrorMessage = ErrorMessage;
/* class: ErrorCode */
class ErrorCode {
/**
@@ -57,6 +58,6 @@ class ErrorCode {
throw new Error(ErrorConstants.UTILITY_CLASS_EXCEPTION);
}
}
exports.ErrorCode = ErrorCode;
// Result code in case of failure
ErrorCode.DEFAULT_CODE = "501";
exports.ErrorCode = ErrorCode;
5 changes: 3 additions & 2 deletions dist/com/paytm/pg/constants/LibraryConstants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Request = exports.LibraryConstants = void 0;
/**
* Copyright (C) 2019 Paytm.
*/
@@ -14,6 +15,7 @@ class LibraryConstants {
throw new Error(_ErrorConstants.ErrorConstants.UTILITY_CLASS_EXCEPTION);
}
}
exports.LibraryConstants = LibraryConstants;
LibraryConstants.VERSION = "v2";
/** Environment constants */
LibraryConstants.STAGING_ENVIRONMENT = "STAGE";
@@ -29,7 +31,6 @@ LibraryConstants.X_REQUEST_ID = "X-Request-ID";
LibraryConstants.NODE_SDK_TEXT = "NODE-SDK";
/** holds the version of SDK */
LibraryConstants.NODE_SDK_VERSION = "1.0.0";
exports.LibraryConstants = LibraryConstants;
/* class: Request */
class Request {
/**
@@ -40,6 +41,6 @@ class Request {
throw new Error(_ErrorConstants.ErrorConstants.UTILITY_CLASS_EXCEPTION);
}
}
exports.Request = Request;
Request.FOOD_WALLET = "FOOD";
Request.GIFT_WALLET = "GIFT";
exports.Request = Request;
3 changes: 1 addition & 2 deletions dist/com/paytm/pg/constants/MerchantProperties.d.ts
Original file line number Diff line number Diff line change
@@ -62,11 +62,10 @@ export declare class MerchantProperties {
* @param string environment
* @param string mid
* @param string merchantKey
* @param string clientId
* @param string website
* @throws Exception
*/
static initialize(environment: string, mid: string, merchantKey: string, clientId: string , website: string): void;
static initialize(environment: string, mid: string, merchantKey: string, website: string): void;
/**
* @return string
*/
23 changes: 10 additions & 13 deletions dist/com/paytm/pg/constants/MerchantProperties.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MerchantProperties = void 0;
/**
* This class is used to store all the merchant related constants
* that are common to all payments and orders
@@ -17,11 +18,10 @@ class MerchantProperties {
* @param string environment
* @param string mid
* @param string merchantKey
* @param string clientId
* @param string website
* @throws Exception
*/
static initialize(environment, mid, merchantKey, clientId, website) {
static initialize(environment, mid, merchantKey, website) {
if (!MerchantProperties.isInitialized) {
_LoggingUtil.LoggingUtil.addLog(_LoggingUtil.LoggingUtil.LogLevel.INFO, "MerchantProperties", "initialize called");
if (_CommonUtil.CommonUtil.isEmptyOrNull(environment))
@@ -30,16 +30,13 @@ class MerchantProperties {
throw new _SDKException.SDKException("Mid can not be null or empty");
else if (_CommonUtil.CommonUtil.isEmptyOrNull(merchantKey))
throw new _SDKException.SDKException("Merchant key can not be null or empty");
else if (_CommonUtil.CommonUtil.isEmptyOrNull(clientId))
throw new _SDKException.SDKException("Client Id can not be null or empty");
else if (_CommonUtil.CommonUtil.isEmptyOrNull(website))
throw new _SDKException.SDKException("Website can not be null or empty");
else {
MerchantProperties.isInitialized = true;
MerchantProperties.setEnvironment(environment);
MerchantProperties.setMid(mid);
MerchantProperties.setMerchantKey(merchantKey);
MerchantProperties.setClientId(clientId);
MerchantProperties.setWebsite(website);
}
}
@@ -160,13 +157,14 @@ class MerchantProperties {
MerchantProperties.environment = environment;
_LoggingUtil.LoggingUtil.addLog(_LoggingUtil.LoggingUtil.LogLevel.INFO, "MerchantProperties", "Setting Environment for " + environment);
if (environment === _LibraryConstants.LibraryConstants.PRODUCTION_ENVIRONMENT) {
MerchantProperties.initiateTxnUrl = "https://securegw.paytm.in/theia/api/v1/initiateTransaction";
MerchantProperties.refundUrl = "https://securegw.paytm.in/refund/api/v1/async/refund";
MerchantProperties.paymentStatusUrl = "https://securegw.paytm.in/merchant-status/api/v1/getPaymentStatus";
MerchantProperties.initiateTxnUrl = "https://secure.paytmpayments.com/theia/api/v1/initiateTransaction";
MerchantProperties.refundUrl = "https://secure.paytmpayments.com/refund/api/v1/async/refund";
MerchantProperties.paymentStatusUrl = "https://secure.paytmpayments.com/merchant-status/api/v1/getPaymentStatus";
MerchantProperties.refundStatusUrl = "https://pgp-ite.paytm.in/refund/api/v1/refundStatus";
}
}
}
exports.MerchantProperties = MerchantProperties;
/**
* @var bool
*/
@@ -199,17 +197,16 @@ MerchantProperties.callbackUrl = "https://pg-staging.paytm.in/MerchantSite/bankR
/**
* @var string
*/
MerchantProperties.initiateTxnUrl = "https://securegw-stage.paytm.in/theia/api/v1/initiateTransaction";
MerchantProperties.initiateTxnUrl = "https://securestage.paytmpayments.com/theia/api/v1/initiateTransaction";
/**
* @var string
*/
MerchantProperties.refundUrl = "https://securegw-stage.paytm.in/refund/api/v1/async/refund";
MerchantProperties.refundUrl = "https://securestage.paytmpayments.com/refund/api/v1/async/refund";
/**
* @var string
*/
MerchantProperties.paymentStatusUrl = "https://securegw-stage.paytm.in/merchant-status/api/v1/getPaymentStatus";
MerchantProperties.paymentStatusUrl = "https://securestage.paytmpayments.com/merchant-status/api/v1/getPaymentStatus";
/**
* @var string
*/
MerchantProperties.refundStatusUrl = "https://securegw-stage.paytm.in/refund/api/v1/refundStatus";
exports.MerchantProperties = MerchantProperties;
MerchantProperties.refundStatusUrl = "https://securestage.paytmpayments.com/refund/api/v1/refundStatus";
25 changes: 18 additions & 7 deletions dist/com/paytm/pg/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./Config"));
__export(require("./ErrorConstants"));
__export(require("./LibraryConstants"));
__export(require("./MerchantProperties"));
__exportStar(require("./Config"), exports);
__exportStar(require("./ErrorConstants"), exports);
__exportStar(require("./LibraryConstants"), exports);
__exportStar(require("./MerchantProperties"), exports);
3 changes: 2 additions & 1 deletion dist/com/paytm/pg/enums/EChannelId.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
* Copyright (C) 2019 Paytm.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.EChannelId = void 0;
/* class: EChannelId */
class EChannelId {
/**
@@ -49,8 +50,8 @@ class EChannelId {
throw new Error("Given value of Currency is not supported");
}
}
exports.EChannelId = EChannelId;
EChannelId.APP = "APP";
EChannelId.WEB = "WEB";
EChannelId.WAP = "WAP";
EChannelId.SYSTEM = "SYSTEM";
exports.EChannelId = EChannelId;
Loading