JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

How can I do the offline transactions

Algorithm School

Moderator: UNKNwYSHSA

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

How can I do the offline transactions

Post by Thelogan » Fri Sep 25, 2015 8:44 am

I am working on applet development for online payment. Now I am experiencing a problem about how to store the offline data into java card.
How can I do the offline transactions? Hope somebody provide me more points. thx

User avatar
horse dream
Posts: 76
Joined: Thu May 21, 2015 11:48 pm
Points :140
Contact:

Re: How can I do the offline transactions

Post by horse dream » Mon Nov 02, 2015 11:35 pm

You should store the offline balance in the persistent memory. Moreover, updates to this persistent memory must be atomic.
That is if a transaction is going on and there is a card tear, then the transaction should be invalid.
For this, Java Card has the beginTransaction and abortTransaction methods in JCSystem.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Google [Bot] and 2 guests

JavaCard OS : Disclaimer