{
	"VersionControl":{
		"Version":"2.0.0",
		"Description":"QR Payment Schema",
		"Release Date":"7 Dec 2020",
		"Created by": "Chris Ong"
	},
	"MT0180":{
		"header": {
			"h001_MTI": {
				"IfNull": {
					"DefaultValue":"0180"
				},
				"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":"SndrID",
				"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"
			},
			"f019_ExpTxnAmt": {
				"MerchantField":"ExpTxnAmt",
				"Hash":"true"
			},
			"f256_FICode": {
				"MerchantField":"FICode",
				"Hash":"true"
			},
			"f260_ServID": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f265_RURL_CCPS":{
				"IfNull": {
					"PropertiesValue":"true"
				},				
				"MerchantField":"SuccRespURL",
				"Hash":"true"
			},
			"f279_HP": {
				"MerchantField":"UserContact",
				"Hash":"true"
			},
			"f285_IPAddr": {
				"MerchantField":"UserIPAddress",
				"Hash":"true"
			},
			"f289_CustId": {
				"MerchantField":"PortalUserID",
				"Hash":"false"
			},
			"f354_TID": {
				"MerchantField":"TerminalID",
				"Hash":"true"
			},
			"f366_PayloadInd":{
				"MerchantField":"PayloadInd",
				"Hash":"true"
			},
			"f367_PANInd":{
				"MerchantField":"PANInd",
				"Hash":"true"
			},
			"f368_AcctInd":{
				"MerchantField":"SndrIDType",
				"Hash":"true"
			},
			"f369_DevID":{
				"MerchantField":"DeviceID",
				"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"
			}
		}
	},
	"MT0190":{
		"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"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"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"
			},
			"f023_RRN": {
				"MerchantField":"RetrievalRefNo",
				"Hash":"true"
			},
			"f258_TxnStatDetCde": {
				"MerchantField":"TxnStatDetCde",
				"Hash":"true"
			},
			"f259_TxnStatMsg": {
				"MerchantField":"TxnStatMsg",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f370_QRPayload": {
				"MerchantField":"QRPayload",
				"Hash":"true"
			},
			"f371_BarcodePayload": {
				"MerchantField":"BarcodePayload",
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"MerchantField":"SHValue",
				"Hash":"false"
			}
		}
	},
	"MT0240":{
		"header": {
			"h001_MTI": {
				"IfNull": {
					"DefaultValue":"0240"
				},
				"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":"SndrID",
				"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"
			},
			"f247_OrgTxnAmt":{
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertNumberToString",
					"Parameter":[
						"getter('OrigTxnAmt')"
					]
				},
				"MerchantField":"OrigTxnAmt",
				"Hash":"true"
			},
			"f248_OrgCurrCode":{
				"MerchantField":"OrigCurrCode",
				"Hash":"true"
			},
			"f253_CntyCode":{
				"MerchantField":"CountryCode",
				"Hash":"true"
			},
			"f256_FICode": {
				"MerchantField":"FICode",
				"Hash":"true"
			},
			"f260_ServID": {
				"IfNull": {
					"PropertiesValue":"true"
				},	
				"MerchantField":"ServiceID",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f265_RURL_CCPS":{
				"IfNull": {
					"PropertiesValue":"true"
				},				
				"MerchantField":"SuccRespURL",
				"Hash":"true"
			},
			"f279_HP": {
				"MerchantField":"UserContact",
				"Hash":"true"
			},
			"f285_IPAddr": {
				"MerchantField":"UserIPAddress",
				"Hash":"true"
			},
			"f289_CustId": {
				"MerchantField":"PortalUserID",
				"Hash":"false"
			},
			"f297_BussName":{
				"MerchantField":"BizNm",
				"Hash":"true"
			},
			"f304_BusZip":{
				"MerchantField":"BizAddrZIPCode",
				"Hash":"true"
			},
			"f305_BusStcde":{
				"MerchantField":"BizAddrStateCode",
				"Hash":"true"
			},
			"f354_TID": {
				"MerchantField":"TerminalID",
				"Hash":"true"
			},
			"f366_PayloadInd":{
				"MerchantField":"PayloadInd",
				"Hash":"true"
			},
			"f367_PANInd":{
				"MerchantField":"PANInd",
				"Hash":"true"
			},
			"f368_AcctInd":{
				"MerchantField":"SndrIDType",
				"Hash":"true"
			},
			"f369_DevID":{
				"MerchantField":"DeviceID",
				"Hash":"true"
			},
			"f370_QRPayload":{
				"MerchantField":"QRPayload",
				"Hash":"true"
			},
			"f372_TxnFlag":{
				"MerchantField":"TxnFlag",
				"Hash":"true"
			},
			"f373_MercPAN":{
				"MerchantField":"MerchPAN",
				"Hash":"true"
			},
			"f374_MCC":{
				"MerchantField":"MCC",
				"Hash":"true"
			},
			"f378_TxnId":{
				"MerchantField":"TxnID",
				"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"
			}
		}
	},
	"MT0250":{
		"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"
			},
			"f004_PAN": {
				"MerchantField":"CardNo",
				"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"
			},
			"f023_RRN": {
				"MerchantField":"RetrievalRefNo",
				"Hash":"true"
			},
			"f258_TxnStatDetCde": {
				"MerchantField":"TxnStatDetCde",
				"Hash":"true"
			},
			"f259_TxnStatMsg": {
				"MerchantField":"TxnStatMsg",
				"Hash":"true"
			},
			"f263_MRN": {
				"MerchantField":"MerchRefNo",
				"Hash":"true"
			},
			"f370_QRPayload": {
				"MerchantField":"QRPayload",
				"Hash":"true"
			},
			"f375_MrkUpFee": {
				"MerchantField":"MarkUpFee",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertStringToNumber",
					"Parameter":[
						"getter('f375_MrkUpFee')",
						"0"
					]
				},
				"Hash":"true"
			},
			"f376_DiscAmt": {
				"MerchantField":"DiscountAmt",
				"Conversion":{
					"ClassName":"com.PayMaster.DataConversion.NumberConversion",
					"MethodName":"convertStringToNumber",
					"Parameter":[
						"getter('f376_DiscAmt')",
						"0"
					]
				},
				"Hash":"true"
			},
			"f377_DiscNote": {
				"MerchantField":"DiscountNote",
				"Hash":"true"
			},
			"f379_QrcVocNo": {
				"MerchantField":"QRCVoucherNo",
				"Hash":"true"
			}
		},
		"trailer": {
			"t001_SHT": {
				"MerchantField":"SHAlgorithmType",
				"Hash":"false"
			},
			"t002_SHV": {
				"MerchantField":"SHValue",
				"Hash":"false"
			}
		}
	}
}