{
	"VersionControl":{
		"Version":"2.0.0",
		"Description":"Card Payment Schema",
		"Release Date":"7 Dec 2020",
		"Created by": "Chris Ong"
	},
	"MT0100":{
		"header": {
			"h001_MTI": {
				"IfNull": {
					"DefaultValue":"0100"
				},
				"Hash":"true"
			},
			"h002_VNO": {
				"IfNull": {
					"PropertiesValue":"true"
				},				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDate"
				},
				"Hash":"true"
			},
			"h004_TTM": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentTime"
				},
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f005_ExpDate": {
				"Combination":{
					"MerchantField":[
						"ExpiryYear",
						"ExpiryMth"
					]
				},
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDateTime"
				},
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('TxnAmt')"
					]
				},
				"MerchantField":"TxnAmt",
				"Hash":"true"
			},
			"f008_POSCond": {
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f012_CVV2": {
				"MerchantField":"CVV2",
				"Hash":"true"
			},
			"f014_3DXID": {
				"MerchantField":"TxnID3D",
				"Hash":"true"
			},
			"f015_3DARC": {
				"MerchantField":"AuthResultCode3DS",
				"Hash":"true"
			},
			"f016_3DCAVVLen": {
				"IfNull": {
					"DefaultValue":"28"
				},
				"MerchantField":"CAVVLen3D",
				"Hash":"true"
			},
			"f017_3DCAVV": {
				"MerchantField":"CAVV3D",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f022_ECI": {
				"MerchantField":"ECI",
				"Hash":"true"
			},
			"f247_OrgTxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('OrigTxnAmt')"
					]
				},
				"MerchantField":"OrigTxnAmt",
				"Hash":"true"
			},
			"f248_OrgCurrCode": {
				"MerchantField":"OrigCurrCode",
				"Hash":"true"
			},
			"f249_TxnCh": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"TxnChannel",
				"Hash":"true"
			},
			"f260_ServID": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f264_Locale": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"LangLocale",
				"Hash":"true"
			},
			"f265_RURL_CCPS": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('SuccRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"SuccRespURL",
				"Hash":"true"
			},
			"f266_RURL_CCPU": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('UnsuccRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"UnsuccRespURL",
				"Hash":"true"
			},
			"f267_RURL_CCPC": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('CancelRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"CancelRespURL",
				"Hash":"true"
			},
			"f268_CHName": {
				"MerchantField":"CardHolderName",
				"Hash":"true"
			},
			"f269_IssName": {
				"MerchantField":"CardIssuerName",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f271_ODesc": {
				"MerchantField":"OrderDesc",
				"Hash":"true"
			},
			"f278_EMailAddr": {
				"MerchantField":"UserEmail",
				"Hash":"true"
			},
			"f279_HP": {
				"MerchantField":"UserContact",
				"Hash":"true"
			},
			"f285_IPAddr": {
				"MerchantField":"UserIPAddress",
				"Hash":"true"
			},
			"f287_ExpOrgTxnAmt": {
				"MerchantField":"ExpOrigTxnAmt",
				"Hash":"true"
			},
			"f288_IssCntrCde": {
				"MerchantField":"CardIssuerCountry",
				"Hash":"true"
			},
			"f350_CrdTyp": {
				"MerchantField":"CardType",
				"Hash":"true"
			},
			"f354_TID": {
				"MerchantField":"TerminalID",
				"Hash":"true"
			},
			"f352_AcqBank": {
				"MerchantField":"AcqBank",
				"Hash":"true"
			},
			"f353_IPPTenure": {
				"MerchantField":"IPPTenure",
				"Hash":"true"
			},
			"f325_ECommMercInd": {
				"MerchantField":"EcommMerchInd",
				"Hash":"true"
			},
			"f339_TokenFlg": {
				"MerchantField":"TokenFlag",
				"Hash":"true"
			},
			"f340_MercPromoCde": {
				"MerchantField":"MerchPromoCode",
				"Hash":"true"
			},
			"f341_MercPromoAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertNumberToString",
					"Parameter":[
						"getter('MerchPromoAmt')",
						"|"
					]
				},
				"MerchantField":"MerchPromoAmt",
				"Hash":"true"
			},
			"f342_PromoAmtAcqCst": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertNumberToString",
					"Parameter":[
						"getter('PromoAmtAcqCost')",
						"|"
					]
				},
				"MerchantField":"PromoAmtAcqCost",
				"Hash":"true"
			},
			"f343_PromoAmtMercCst": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertNumberToString",
					"Parameter":[
						"getter('PromoAmtMerchCost')",
						"|"
					]
				},
				"MerchantField":"PromoAmtMerchCost",
				"Hash":"true"
			},
			"f344_MercCustId": {
				"MerchantField":"MerchUserID",
				"Hash":"true"
			},
			"f347_TokenShrtNm": {
				"MerchantField":"TokenShrtName",
				"Hash":"true"
			},
			"f363_InvNum": {
				"MerchantField":"InvoiceNo",
				"Hash":"true"
			},
			"f364_Fee": {
				"MerchantField":"Fee",
				"Hash":"true"
			},
			"f365_POSEnvFlg": {
				"MerchantField":"POSEnvFlag",
				"Version":{
					"Published":"6"
				},
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"IfNull":{
					"ClassName":"com.PayMaster.SecureHash.MessageHashing",
					"MethodName":"hashMessageInSHA2",
					"Parameter":[
						"prop('SecretKey')",
						"getter('hashMessage')"
					]
				},
				"Hash":"false"
			}
		}
	},
	
	"MT0110":{
		"header": {
			"h001_MTI": {
				"Hash":"true"
			},
			"h002_VNO": {				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"Hash":"true"
			},
			"h004_TTM": {
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f005_ExpDate": {
				"SplitConversion":{
					"ClassName":"com.PayMaster.DataConversion.SubstringConversion",
					"MethodName":"substringConversion",
					"Parameter":[
						"getter('f005_ExpDate')",
						"2"
					],
					"MerchantField":["ExpiryYear","ExpiryMth"]
				},
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"MerchantField":"TxnAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertStringToNumber",
					"Parameter":[
						"getter('f007_TxnAmt')",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f009_RespCode": {
				"MerchantField":"TxnStatus",
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f011_AuthIDResp": {
				"MerchantField":"AuthIDRespCode",
				"Hash":"true"
			},
			"f013_CVV2RsltCde": {
				"MerchantField":"CVV2ResultCode",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f023_RRN": {
				"MerchantField":"RetrievalRefNo",
				"Hash":"true"
			},
			"f024_OrgRespCode": {
				"MerchantField":"OrigRespCode",
				"Hash":"true"
			},
			"f257_PGRN": {
				"MerchantField":"PymtGwRefNo",
				"Hash":"true"
			},
			"f258_TxnStatDetCde": {
				"MerchantField":"TxnStatDetCde",
				"Hash":"true"
			},
			"f259_TxnStatMsg": {
				"MerchantField":"TxnStatMsg",
				"Hash":"true"
			},
			"f260_ServID": {
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f354_TID": {
				"MerchantField":"TerminalID",
				"Hash":"true"
			},
			"f325_ECommMercInd": {
				"MerchantField":"EcommMerchInd",
				"Hash":"true"
			},
			"f339_TokenFlg": {
				"MerchantField":"TokenFlag",
				"Hash":"true"
			},
			"f340_MercPromoCde": {
				"MerchantField":"MerchPromoCode",
				"Hash":"true"
			},
			"f341_MercPromoAmt": {
				"MerchantField":"MerchPromoAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertStringToNumber",
					"Parameter":[
						"getter('f341_MercPromoAmt')",
						"|",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f342_PromoAmtAcqCst": {
				"MerchantField":"PromoAmtAcqCost",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertStringToNumber",
					"Parameter":[
						"getter('f342_PromoAmtAcqCst')",
						"|",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f343_PromoAmtMercCst": {
				"MerchantField":"PromoAmtMerchCost",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertStringToNumber",
					"Parameter":[
						"getter('f343_PromoAmtMercCst')",
						"|",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f344_MercCustId": {
				"MerchantField":"MerchUserID",
				"Hash":"true"
			},
			"f346_Token": {
				"MerchantField":"Token",
				"Hash":"true"
			},
			"f347_TokenShrtNm": {
				"MerchantField":"TokenShrtName",
				"Hash":"true"
			},
			"f348_MaskPAN": {
				"MerchantField":"MaskCardNo",
				"Hash":"true"
			},
			"f350_CrdTyp": {
				"MerchantField":"CardType",
				"Hash":"true"
			},
			"f365_POSEnvFlg": {
				"MerchantField":"POSEnvFlag",
				"Version":{
					"Published":"6"
				},
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"MerchantField":"SHValue",
				"Hash":"false"
			}
		}
	},
	
	"MT0200":{
		"header": {
			"h001_MTI": {
				"IfNull": {
					"DefaultValue":"0200"
				},
				"Hash":"true"
			},
			"h002_VNO": {
				"IfNull": {
					"PropertiesValue":"true"
				},				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDate"
				},
				"Hash":"true"
			},
			"h004_TTM": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentTime"
				},
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f005_ExpDate": {
				"Combination":{
					"MerchantField":[
						"ExpiryYear",
						"ExpiryMth"
					]
				},
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDateTime"
				},
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('TxnAmt')"
					]
				},
				"MerchantField":"TxnAmt",
				"Hash":"true"
			},
			"f008_POSCond": {
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f012_CVV2": {
				"MerchantField":"CVV2",
				"Hash":"true"
			},
			"f014_3DXID": {
				"MerchantField":"TxnID3D",
				"Hash":"true"
			},
			"f015_3DARC": {
				"MerchantField":"AuthResultCode3DS",
				"Hash":"true"
			},
			"f016_3DCAVVLen": {
				"IfNull": {
					"DefaultValue":"28"
				},
				"MerchantField":"CAVVLen3D",
				"Hash":"true"
			},
			"f017_3DCAVV": {
				"MerchantField":"CAVV3D",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f022_ECI": {
				"MerchantField":"ECI",
				"Hash":"true"
			},
			"f247_OrgTxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('OrigTxnAmt')"
					]
				},
				"MerchantField":"OrigTxnAmt",
				"Hash":"true"
			},
			"f248_OrgCurrCode": {
				"MerchantField":"OrigCurrCode",
				"Hash":"true"
			},
			"f249_TxnCh": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"TxnChannel",
				"Hash":"true"
			},
			"f260_ServID": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f264_Locale": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"LangLocale",
				"Hash":"true"
			},
			"f265_RURL_CCPS": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('SuccRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"SuccRespURL",
				"Hash":"true"
			},
			"f266_RURL_CCPU": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('UnsuccRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"UnsuccRespURL",
				"Hash":"true"
			},
			"f267_RURL_CCPC": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('CancelRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"CancelRespURL",
				"Hash":"true"
			},
			"f268_CHName": {
				"MerchantField":"CardHolderName",
				"Hash":"true"
			},
			"f269_IssName": {
				"MerchantField":"CardIssuerName",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f271_ODesc": {
				"MerchantField":"OrderDesc",
				"Hash":"true"
			},
			"f278_EMailAddr": {
				"MerchantField":"UserEmail",
				"Hash":"true"
			},
			"f279_HP": {
				"MerchantField":"UserContact",
				"Hash":"true"
			},
			"f285_IPAddr": {
				"MerchantField":"UserIPAddress",
				"Hash":"true"
			},
			"f287_ExpOrgTxnAmt": {
				"MerchantField":"ExpOrigTxnAmt",
				"Hash":"true"
			},
			"f288_IssCntrCde": {
				"MerchantField":"CardIssuerCountry",
				"Hash":"true"
			},
			"f350_CrdTyp": {
				"MerchantField":"CardType",
				"Hash":"true"
			},
			"f354_TID": {
				"MerchantField":"TerminalID",
				"Hash":"true"
			},
			"f352_AcqBank": {
				"MerchantField":"AcqBank",
				"Hash":"true"
			},
			"f353_IPPTenure": {
				"MerchantField":"IPPTenure",
				"Hash":"true"
			},
			"f325_ECommMercInd": {
				"MerchantField":"EcommMerchInd",
				"Hash":"true"
			},
			"f339_TokenFlg": {
				"MerchantField":"TokenFlag",
				"Hash":"true"
			},
			"f340_MercPromoCde": {
				"MerchantField":"MerchPromoCode",
				"Hash":"true"
			},
			"f341_MercPromoAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertNumberToString",
					"Parameter":[
						"getter('MerchPromoAmt')",
						"|"
					]
				},
				"MerchantField":"MerchPromoAmt",
				"Hash":"true"
			},
			"f342_PromoAmtAcqCst": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertNumberToString",
					"Parameter":[
						"getter('PromoAmtAcqCost')",
						"|"
					]
				},
				"MerchantField":"PromoAmtAcqCost",
				"Hash":"true"
			},
			"f343_PromoAmtMercCst": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertNumberToString",
					"Parameter":[
						"getter('PromoAmtMerchCost')",
						"|"
					]
				},
				"MerchantField":"PromoAmtMerchCost",
				"Hash":"true"
			},
			"f344_MercCustId": {
				"MerchantField":"MerchUserID",
				"Hash":"true"
			},
			"f347_TokenShrtNm": {
				"MerchantField":"TokenShrtName",
				"Hash":"true"
			},
			"f363_InvNum": {
				"MerchantField":"InvoiceNo",
				"Hash":"true"
			},
			"f364_Fee": {
				"MerchantField":"Fee",
				"Hash":"true"
			},
			"f365_POSEnvFlg": {
				"MerchantField":"POSEnvFlag",
				"Version":{
					"Published":"6"
				},
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"IfNull":{
					"ClassName":"com.PayMaster.SecureHash.MessageHashing",
					"MethodName":"hashMessageInSHA2",
					"Parameter":[
						"prop('SecretKey')",
						"getter('hashMessage')"
					]
				},
				"Hash":"false"
			}
		}
	},
	
	"MT0210":{
		"header": {
			"h001_MTI": {
				"Hash":"true"
			},
			"h002_VNO": {				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"Hash":"true"
			},
			"h004_TTM": {
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f005_ExpDate": {
				"SplitConversion":{
					"ClassName":"com.PayMaster.DataConversion.SubstringConversion",
					"MethodName":"substringConversion",
					"Parameter":[
						"getter('f005_ExpDate')",
						"2"
					],
					"MerchantField":["ExpiryYear","ExpiryMth"]
				},
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"MerchantField":"TxnAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertStringToNumber",
					"Parameter":[
						"getter('f007_TxnAmt')",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f009_RespCode": {
				"MerchantField":"TxnStatus",
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f011_AuthIDResp": {
				"MerchantField":"AuthIDRespCode",
				"Hash":"true"
			},
			"f013_CVV2RsltCde": {
				"MerchantField":"CVV2ResultCode",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f023_RRN": {
				"MerchantField":"RetrievalRefNo",
				"Hash":"true"
			},
			"f024_OrgRespCode": {
				"MerchantField":"OrigRespCode",
				"Hash":"true"
			},
			"f257_PGRN": {
				"MerchantField":"PymtGwRefNo",
				"Hash":"true"
			},
			"f258_TxnStatDetCde": {
				"MerchantField":"TxnStatDetCde",
				"Hash":"true"
			},
			"f259_TxnStatMsg": {
				"MerchantField":"TxnStatMsg",
				"Hash":"true"
			},
			"f260_ServID": {
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f354_TID": {
				"MerchantField":"TerminalID",
				"Hash":"true"
			},
			"f325_ECommMercInd": {
				"MerchantField":"EcommMerchInd",
				"Hash":"true"
			},
			"f339_TokenFlg": {
				"MerchantField":"TokenFlag",
				"Hash":"true"
			},
			"f340_MercPromoCde": {
				"MerchantField":"MerchPromoCode",
				"Hash":"true"
			},
			"f341_MercPromoAmt": {
				"MerchantField":"MerchPromoAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertStringToNumber",
					"Parameter":[
						"getter('f341_MercPromoAmt')",
						"|",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f342_PromoAmtAcqCst": {
				"MerchantField":"PromoAmtAcqCost",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertStringToNumber",
					"Parameter":[
						"getter('f342_PromoAmtAcqCst')",
						"|",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f343_PromoAmtMercCst": {
				"MerchantField":"PromoAmtMerchCost",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.SplitConversion",
					"MethodName":"splitConvertStringToNumber",
					"Parameter":[
						"getter('f343_PromoAmtMercCst')",
						"|",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f344_MercCustId": {
				"MerchantField":"MerchUserID",
				"Hash":"true"
			},
			"f346_Token": {
				"MerchantField":"Token",
				"Hash":"true"
			},
			"f347_TokenShrtNm": {
				"MerchantField":"TokenShrtName",
				"Hash":"true"
			},
			"f348_MaskPAN": {
				"MerchantField":"MaskCardNo",
				"Hash":"true"
			},
			"f350_CrdTyp": {
				"MerchantField":"CardType",
				"Hash":"true"
			},
			"f365_POSEnvFlg": {
				"MerchantField":"POSEnvFlag",
				"Version":{
					"Published":"6"
				},
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"MerchantField":"SHValue",
				"Hash":"false"
			}
		}
	},
	
	"MT0220":{
		"header": {
			"h001_MTI": {
				"IfNull": {
					"DefaultValue":"0220"
				},
				"Hash":"true"
			},
			"h002_VNO": {
				"IfNull": {
					"PropertiesValue":"true"
				},				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDate"
				},
				"Hash":"true"
			},
			"h004_TTM": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentTime"
				},
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f005_ExpDate": {
				"Combination":{
					"MerchantField":[
						"ExpiryYear",
						"ExpiryMth"
					]
				},
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDateTime"
				},
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('TxnAmt')"
					]
				},
				"MerchantField":"TxnAmt",
				"Hash":"true"
			},
			"f008_POSCond": {
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f012_CVV2": {
				"MerchantField":"CVV2",
				"Hash":"true"
			},
			"f014_3DXID": {
				"MerchantField":"TxnID3D",
				"Hash":"true"
			},
			"f015_3DARC": {
				"MerchantField":"AuthResultCode3DS",
				"Hash":"true"
			},
			"f016_3DCAVVLen": {
				"IfNull": {
					"DefaultValue":"28"
				},
				"MerchantField":"CAVVLen3D",
				"Hash":"true"
			},
			"f017_3DCAVV": {
				"MerchantField":"CAVV3D",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f022_ECI": {
				"MerchantField":"ECI",
				"Hash":"true"
			},
			"f247_OrgTxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('OrigTxnAmt')"
					]
				},
				"MerchantField":"OrigTxnAmt",
				"Hash":"true"
			},
			"f248_OrgCurrCode": {
				"MerchantField":"OrigCurrCode",
				"Hash":"true"
			},
			"f249_TxnCh": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"TxnChannel",
				"Hash":"true"
			},
			"f260_ServID": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f264_Locale": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"LangLocale",
				"Hash":"true"
			},
			"f265_RURL_CCPS": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('SuccRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"SuccRespURL",
				"Hash":"true"
			},
			"f266_RURL_CCPU": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('UnsuccRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"UnsuccRespURL",
				"Hash":"true"
			},
			"f267_RURL_CCPC": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('CancelRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"CancelRespURL",
				"Hash":"true"
			},
			"f268_CHName": {
				"MerchantField":"CardHolderName",
				"Hash":"true"
			},
			"f269_IssName": {
				"MerchantField":"CardIssuerName",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f271_ODesc": {
				"MerchantField":"OrderDesc",
				"Hash":"true"
			},
			"f278_EMailAddr": {
				"MerchantField":"UserEmail",
				"Hash":"true"
			},
			"f279_HP": {
				"MerchantField":"UserContact",
				"Hash":"true"
			},
			"f285_IPAddr": {
				"MerchantField":"UserIPAddress",
				"Hash":"true"
			},
			"f287_ExpOrgTxnAmt": {
				"MerchantField":"ExpOrigTxnAmt",
				"Hash":"true"
			},
			"f288_IssCntrCde": {
				"MerchantField":"CardIssuerCountry",
				"Hash":"true"
			},
			"f339_TokenFlg": {
				"MerchantField":"TokenFlag",
				"Hash":"true"
			},
			"f365_POSEnvFlg": {
				"MerchantField":"POSEnvFlag",
				"Version":{
					"Published":"6"
				},
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"IfNull":{
					"ClassName":"com.PayMaster.SecureHash.MessageHashing",
					"MethodName":"hashMessageInSHA2",
					"Parameter":[
						"prop('SecretKey')",
						"getter('hashMessage')"
					]
				},
				"Hash":"false"
			}
		}
	},
	
	"MT0230":{
		"header": {
			"h001_MTI": {
				"Hash":"true"
			},
			"h002_VNO": {				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"Hash":"true"
			},
			"h004_TTM": {
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"MerchantField":"TxnAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertStringToNumber",
					"Parameter":[
						"getter('f007_TxnAmt')",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f009_RespCode": {
				"MerchantField":"TxnStatus",
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f013_CVV2RsltCde": {
				"MerchantField":"CVV2ResultCode",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f023_RRN": {
				"MerchantField":"RetrievalRefNo",
				"Hash":"true"
			},
			"f024_OrgRespCode": {
				"MerchantField":"OrigRespCode",
				"Hash":"true"
			},
			"f257_PGRN": {
				"MerchantField":"PymtGwRefNo",
				"Hash":"true"
			},
			"f258_TxnStatDetCde": {
				"MerchantField":"TxnStatDetCde",
				"Hash":"true"
			},
			"f259_TxnStatMsg": {
				"MerchantField":"TxnStatMsg",
				"Hash":"true"
			},
			"f260_ServID": {
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f365_POSEnvFlg": {
				"MerchantField":"POSEnvFlag",
				"Version":{
					"Published":"6"
				},
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"MerchantField":"SHValue",
				"Hash":"false"
			}
		}
	},
	
	"MT0400":{
		"header": {
			"h001_MTI": {
				"IfNull": {
					"DefaultValue":"0400"
				},
				"Hash":"true"
			},
			"h002_VNO": {
				"IfNull": {
					"PropertiesValue":"true"
				},				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDate"
				},
				"Hash":"true"
			},
			"h004_TTM": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentTime"
				},
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"IfNull": {
					"ClassName":"com.PayMaster.DataConversion.DateTimeConversion",
					"MethodName":"getCurrentDateTime"
				},
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('TxnAmt')"
					]
				},
				"MerchantField":"TxnAmt",
				"Hash":"true"
			},
			"f008_POSCond": {
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f011_AuthIDResp": {
				"MerchantField":"AuthIDRespCode",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f023_RRN": {
				"MerchantField":"RetrievalRefNo",
				"Hash":"true"
			},
			"f257_PGRN": {
				"MerchantField":"PymtGwRefNo",
				"Hash":"true"
			},
			"f260_ServID": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f264_Locale": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"LangLocale",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			},
			"f272_RURL_CCR": {
				"IfNull": {
					"PropertiesValue":"true"
				},
				"Conversion": {
					"ClassName":"com.PayMaster.DataConversion.CharacterConversion",
					"MethodName":"replaceCharacter",
					"Parameter":[
						"getter('ReversalRespURL')",
						"&",
						"^"
					]
				},
				"MerchantField":"ReversalRespURL",
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"IfNull":{
					"ClassName":"com.PayMaster.SecureHash.MessageHashing",
					"MethodName":"hashMessageInSHA2",
					"Parameter":[
						"prop('SecretKey')",
						"getter('hashMessage')"
					]
				},
				"Hash":"false"
			}
		}
	},
	
	"MT0410":{
		"header": {
			"h001_MTI": {
				"Hash":"true"
			},
			"h002_VNO": {				
				"MerchantField":"VersionNo",
				"Hash":"true"
			},
			"h003_TDT": {
				"Hash":"true"
			},
			"h004_TTM": {
				"Hash":"true"
			}
		},
		"body": {
			"f001_MID": {
				"MerchantField":"MerchantID",
				"Hash":"true"
			},
			"f003_ProcCode": {
				"Hash":"true"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"Hash":"true"
			},
			"f006_TxnDtTm": {
				"MerchantField":"TxnDtTm",
				"Hash":"true"
			},
			"f007_TxnAmt": {
				"MerchantField":"TxnAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertStringToNumber",
					"Parameter":[
						"getter('f007_TxnAmt')",
						"getter('f019_ExpTxnAmt')"
					]
				},
				"Hash":"true"
			},
			"f009_RespCode": {
				"MerchantField":"TxnStatus",
				"Hash":"true"
			},
			"f010_CurrCode": {
				"MerchantField":"CurrCode",
				"Hash":"true"
			},
			"f011_AuthIDResp": {
				"MerchantField":"AuthIDRespCode",
				"Hash":"true"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f257_PGRN": {
				"MerchantField":"PymtGwRefNo",
				"Hash":"true"
			},
			"f258_TxnStatDetCde": {
				"MerchantField":"TxnStatDetCde",
				"Hash":"true"
			},
			"f259_TxnStatMsg": {
				"MerchantField":"TxnStatMsg",
				"Hash":"true"
			},
			"f260_ServID": {
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f261_HostID": {
				"MerchantField":"MerchHostID",
				"Hash":"true"
			},
			"f262_SessID": {
				"MerchantField":"MerchSessionID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f270_ORN": {
				"MerchantField":"OrderRefNo",
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"MerchantField":"SHValue",
				"Hash":"false"
			}
		}
	}
}