improved the error handling and updated link paymentstartrecord and transactionmaster
This commit is contained in:
@@ -195,6 +195,9 @@ public class BBPSConstant extends BBPS_RESPONSE_COD_CONSTANT {
|
||||
public static final String MSG_EMPTY_RESPONSE_PG = "Empty response from PG";
|
||||
public static final String MSG_INVALID_JSON_FROM_API = "Invalid JSON received from payment API";
|
||||
public static final String MSG_TXN_PROCESSING = "Transaction processing";
|
||||
// User-facing message for malformed responses from upstream services (used with status code 603)
|
||||
// Short, non-leaking and actionable message
|
||||
public static final String MSG_INVALID_JSON_FROM_UPSTREAM = "Temporary upstream data error. Please try again later.";
|
||||
public static final String MSG_WARNING_FROM_MERCHANT = "Warning from merchant";
|
||||
public static final String MSG_FRAUD_REJECTED = "Fraud Rejected";
|
||||
public static final String MSG_DECRYPTION_FAILED = "Decryption failed";
|
||||
@@ -220,4 +223,6 @@ public class BBPSConstant extends BBPS_RESPONSE_COD_CONSTANT {
|
||||
public static final String USER_UNAUTHORIZED_STR = "401";
|
||||
public static final String OK_STR = "200";
|
||||
|
||||
// Newly added constant for invalid JSON status code
|
||||
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.billpaymentservice.bbps.util;
|
||||
|
||||
public class BBPS_RESPONSE_COD_CONSTANT {
|
||||
public static final int INVALID_JSON_STATUS_CODE = 603;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user