What is STAN and RRN

10,123 views
Skip to first unread message

murali krishna

unread,
Jul 24, 2013, 2:53:43 AM7/24/13
to jpos-...@googlegroups.com
Hi All,

Can someone help out with the following.

1. What is STAN and its use.
2. How to generate STAN.
3. What is RR and its use.
4. How to generate RRN.

Regards,
Murali

Vinoth Kanna

unread,
Jul 24, 2013, 3:31:20 AM7/24/13
to jPOS Users


1. What is STAN and its use.
System Trace Audit Number  : it's kind of a Unique Key for a transaction.
2. How to generate STAN.: generate a running number.
3. What is RR and its use. (Retrieval Reference number ): it's another  key  to combine with other keys to uniquely identify a transaction.
4. How to generate RRN.  (Can use the date and could combine a sequence number )  201307231111

Google has lots of reference , do some research .
start from this
http://en.wikipedia.org/wiki/ISO_8583



--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
 
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best Regards
Vinoth/Vidu/

chhil

unread,
Jul 24, 2013, 3:50:36 AM7/24/13
to jpos-...@googlegroups.com

STAN : System Trace Audit Number.
RRN : Retrieval reference number.

RRN is usually wider than the STAN thus giving the RRN more values than the stan before it rolls over and restart the sequencing (asuming the values are defined as numeric).

The usage of these varies from spec to spec.
As an example one of the may implementations possible, the stan could be a sequential per transaction number. A transaction I would consider as a request response pair (0100/0110 , 0200/0210, 0220/0230 etc).

The RRN can also be a sequential number but may remain constant across the entire transaction associated with a card. So if you have a 0100/0110 followed by a completion 0220/0230, the rrn would remain the same across these request response pairs. It helps you to link the transactions, so when the 0220 comes in you can look up the original 0100 by using the rrn. A similar thing can be done for reversals too 0200/0210 followed by a 0420/0430).

Generation logic for these is upto you. See a similar thread
https://groups.google.com/forum/#!searchin/jpos-users/retrieval$20reference$20number/jpos-users/9REBHkMgMPI/Rju5w4zlzO8J

If you are familiar with jpos we use something like
String stan = ISOUtil.zeropad(Long.toString(SpaceUtil.nextLong(sp, "STAN") % 1000000L), 6);



-chhil
 

--

Jahangir Zinedine

unread,
Jun 16, 2014, 10:12:24 AM6/16/14
to jpos-...@googlegroups.com
A great description of both concepts, thanks a lot!
Reply all
Reply to author
Forward
0 new messages