Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output on;
- // create wallet applet
- 0x80 0xB8 0x00 0x00 0x14 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x6 0x1 0x08 0x0 0x0 0x05 0x01 0x02 0x03 0x04 0x05 0x7F;
- /////////////////////////////////////////////////////////////////////
- // Initialize Wallet
- /////////////////////////////////////////////////////////////////////
- //Select Wallet
- 0x00 0xA4 0x04 0x00 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x6 0x1 0x7F;
- // 90 00 = SW_NO_ERROR
- //Verify user pin
- 0x80 0x20 0x00 0x00 0x05 0x01 0x02 0x03 0x04 0x05 0x7F;
- //90 00 = SW_NO_ERROR
- //Credit $9000 to the account
- 0x80 0x30 0x00 0x00 0x02 0x23 0x28 0x7F;
- //0x9000 = SW_NO_ERROR
- //Get wallet cash balance
- 0x80 0x50 0x01 0x00 0x00 0x02;
- //0x00 0x00 0x23 0x28 0x90 0x00 = Balance = 9000 and SW_NO_ERROR
- //Get wallet points balance
- 0x80 0x50 0x02 0x00 0x00 0x02;
- //0x00 0x00 0x02 0x00 0x00 0x00 = Balance = 0 and SW_NO_ERROR
- //Debit $5600 from the account
- 0x80 0x40 0x01 0x00 0x05 0x15 0xe0 0x04 0x04 0x13 0x7F;
- //0x9000 = SW_NO_ERROR
- //Get wallet cash balance
- 0x80 0x50 0x01 0x00 0x00 0x02;
- //0x00 0x00 0x0d 0x48 0x90 0x00 = Balance = 3400 and SW_NO_ERROR
- //Get wallet points balance
- 0x80 0x50 0x02 0x00 0x00 0x02;
- //0x00 0x00 0x02 0x01 0x18 0x00 = Balance = 280 and SW_NO_ERROR
- //Debit $600 from the account
- 0x80 0x40 0x01 0x00 0x05 0x02 0x58 0x0d 0x04 0x13 0x7F;
- //0x9000 = SW_NO_ERROR
- //Get wallet cash balance
- 0x80 0x50 0x01 0x00 0x00 0x02;
- //0x00 0x00 0x0a 0x0f0 0x90 0x00 = Balance = 2800 and SW_NO_ERROR
- //Get wallet points balance
- 0x80 0x50 0x02 0x00 0x00 0x02;
- //0x00 0x00 0x02 0x01 0x2c 0x00 = Balance = 300 and SW_NO_ERROR
- //Debit 400 points from the account during promotion
- 0x80 0x40 0x02 0x00 0x05 0x01 0x90 0x14 0x04 0x13 0x7F;
- //0x9000 = SW_NO_ERROR
- //Get wallet cash balance
- 0x80 0x50 0x01 0x00 0x00 0x02;
- //0x00 0x00 0x0a 0x0f0 0x90 0x00 = Balance = 2800 and SW_NO_ERROR
- //Get wallet points balance
- 0x80 0x50 0x02 0x00 0x00 0x02;
- //0x00 0x00 0x02 0x00 0x64 0x00 = Balance = 100 and SW_NO_ERROR
- //Credit $4000 to the account
- 0x80 0x30 0x00 0x00 0x02 0x0f 0xa0 0x7F;
- //0x9000 = SW_NO_ERROR
- //Debit $4200 from the account
- 0x80 0x40 0x01 0x00 0x05 0x10 0x68 0x15 0x04 0x13 0x7F;
- //0x9000 = SW_NO_ERROR
- //Get wallet cash balance
- 0x80 0x50 0x01 0x00 0x00 0x02;
- //0x00 0x00 0x0a 0x028 0x90 0x00 = Balance = 2600 and SW_NO_ERROR
- //Get wallet points balance
- 0x80 0x50 0x02 0x00 0x00 0x02;
- //0x00 0x00 0x02 0x01 0x2c 0x00 = Balance = 300 and SW_NO_ERROR
- //Debit 400 points from the account after more than a month
- 0x80 0x40 0x02 0x00 0x05 0x01 0x90 0x14 0x06 0x13 0x7F;
- //0x6a85 = SW_NEGATIVE_BALANCE
- //Debit 100 points from the account after more than a month
- 0x80 0x40 0x02 0x00 0x05 0x00 0x64 0x14 0x06 0x13 0x7F;
- //0x9000 = SW_NO_ERROR
- //Get wallet cash balance
- 0x80 0x50 0x01 0x00 0x00 0x02;
- //0x00 0x00 0x0a 0x028 0x90 0x00 = Balance = 2600 and SW_NO_ERROR
- //Get wallet points balance
- 0x80 0x50 0x02 0x00 0x00 0x02;
- //0x00 0x00 0x02 0x00 0xc8 0x00 = Balance = 200 and SW_NO_ERROR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement