Skip to content

Instantly share code, notes, and snippets.

View hpkaushik121's full-sized avatar

sourabh kaushik hpkaushik121

View GitHub Profile
/**
* p1 &= 0b00111111 = AAC = reject transaction (EMVApplication Authentication Cryptogram)
* p1 &= 0b10111111 = TC = proceed offline (Transaction Certificate)
* p1 &= 0b01111111 = ARQC = go online (Authorization Request Cryptogram ) +
* 0x00 = CDA signature not requested
* 0x10 = CDA signature requested
*/
ByteArrayOutputStream buf = new ByteArrayOutputStream();
byte[] authorizedAmount = Util.fromHexString("00 00 00 00 01 00"); // 1 Rs
byte[] secondaryAmount = Util.fromHexString("00 00 00 00 00 00"); // 0 Rs
// app/build.gradle
dependencies {
// ... other dependencies
implementation project(':module1')
implementation project(':module2')
}
// Define module priorities