Request format (to PIN Pad)

{  
	"type": <Int>,  
	"payload": <dataset depending on the message type>  
}

Response format (from PIN Pad)

{  
	"type": <Int>,  
	"success": <Boolean>,  
	"transient": <Boolean>,  
	"errorCode": <Int>,  
	"errorMsg": <String>,  
	"payload": <dataset depending on the message type>  
}

Payload formats are presented in the next section.