Responder BSH script for Particular DE55 EMV tag 9f36 need to be set in response message.

74 views
Skip to first unread message

Priya Priya

unread,
Jun 4, 2024, 1:59:40 AMJun 4
to jPOS Users
Hi Team,
Below is the request and response message, I need to build my BSH responder in a way that I have to set DE55 9F36 tag alone as my response.

Request message :
 55 : Length (binary) x62 - 98
    Type 01
    00 5F - length 95
    9F33 : 03 XXXXXX
    95   : 05 XXXXXXXXXX
    9F37 : 04 XXXXXXXX
    9F10 : 07 XXXXXXXXXXXXXX
    9F26 : 08 XXXXXXXXXXXXXXXX
    9F36 : 02 XXXX
    82   : 02 XXXX
    9C   : 01 XX
    9F1A : 02 XXXX
    9A   : 03 XXXXXX
    9F02 : 06 XXXXXXXXXXXX
    5F2A : 02 XXXX
    9F03 : 06 XXXXXXXXXXXX
    84   : 07 XXXXXXXXXXXXXX

Expected Response message :
 55  : Length (binary) x08 - 8
    Type 01
    00 05 - length 5
    9F36 : 02 XXXX


This is the BSH script file for Request Listener.

if ("0100".equals(message.getMTI())) {
message.setResponseMTI();
message.set(55,"9F3602XXXX");
source.send(message);
}


Mark Salter

unread,
Jun 4, 2024, 2:01:47 AMJun 4
to jpos-...@googlegroups.com

Was there a question you meant to ask or a problem you need help with?

-- 
Mark



-------- Original Message --------
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/49a4f2c2-9477-4f8f-8500-8f5ff4510d2cn%40googlegroups.com.
signature.asc

chhil

unread,
Jun 4, 2024, 2:14:05 AMJun 4
to jpos-...@googlegroups.com
Provide your field packager used for DE 55.
Maybe print out what DE55 looks like in the request received as seen in the q2 log of jpos before you try to send a response.

-chhil

Priya Priya

unread,
Jun 4, 2024, 3:49:33 AMJun 4
to jPOS Users
Hi Mark,

Requesting a solution for the problem, as you see the request DE55 has more EMV tags but in expected response I need only 9F36 Tag alone in my response. Can you please help to configure in responder Beanshell file.

Priya Priya

unread,
Jun 4, 2024, 3:49:33 AMJun 4
to jPOS Users
Hi Chhil,

This is the Packager file,

<isofieldpackager id="55" name="EMV DATA" length="99" class="org.jpos.iso.IFB_LLHBINARY" packager="org.jpos.iso.packager.GenericSubFieldPackager" pad="false" emitBitmap="false">
<isofield id="1" length="1" name="Dataset Id" class="org.jpos.iso.IFB_BINARY" pad="true"/>
<isofieldpackager id="2" name="EMV DATA" length="254" class="org.jpos.iso.IFB_LLLHBINARY" pad="false" packager="org.jpos.tlv.packager.bertlv.BERTLVBinaryPackager" emitBitmap="false"/>

DE55 Log message:-

 <isomsg id="55">
    <field id="1" value="01" type="binary"/>
    <isomsg id="2">
      <9F33><field id="1" value="XXXXXX" type="binary"/></9F33>
      <95><field id="2" value="XXXXXXXXXX" type="binary"/></95>
      <9F37><field id="3" value="XXXXXXXX" type="binary"/></9F37>
      <9F10><field id="4" value="XXXXXXXXXXXXXX" type="binary"/></9F10>
      <9F26><field id="5" value="XXXXXXXXXXXXXXXX" type="binary"/></9F26>
      <9F36><field id="6" value="XXXX" type="binary"/></9F36>
      <82><field id="7" value="XXXX" type="binary"/></82>
      <9C><field id="8" value="XX"/></9C>
      <9F1A><field id="9" value="XXXX"/></9F1A>
      <9A><field id="10" value="XXXXXX"/></9A>
      <9F02><field id="11" value="XXXXXXXXXXXX"/></9F02>
      <5F2A><field id="12" value="XXXX"/></5F2A>
      <9F03><field id="13" value="XXXXXXXXXXXX"/></9F03>
      <84><field id="14" value="XXXXXXXXXXXXXX" type="binary"/></84>
    </isomsg>
  </isomsg>


Thanks,
Priya

Mark Salter

unread,
Jun 4, 2024, 3:52:33 AMJun 4
to jpos-...@googlegroups.com

The code currently fully replaces field 55 with the value specified, so that is all it will contain.

The additional discussion about packager in play is key to the actual need, so let that play out.

-- 
Mark



-------- Original Message --------
signature.asc

Priya Priya

unread,
Jun 5, 2024, 3:25:07 AMJun 5
to jPOS Users
Reply all
Reply to author
Forward
0 new messages