Pada bab-bab awal implementasi, kita menggunakan class ServerSocket dan Socket dimana untuk melakukan parsing harus kita lakukan secara manual satu-persatu. Beruntunglah kita sebagai programmer Java , karena di bahasa pemrograman Java terdapat 1 library yang cukup bagus yaitu jPOS. Meskipun library jPOS ini opensource, tapi untuk dokumentasi-nya (jPOS Programmer’s Guide) kita diharuskan membeli sebesar $ 50 saja (sebuah harga yang tidak terlalu mahal bukan ?) Sedangkan untuk source code jPOS sendiri, bisa kita download menggunakan anonymous subversion pada alamathttps://jpos.svn.sourceforge.net/svnroot/jpos (untuk pengembangan menggunakan library jPOS, sangat dianjurkan untuk mendownload source code ini sebagai bahan referensi)
Apasih kelebihan dari library jPOS ini ? Yang jelas adalah, library ini memangkas semua proses manual yang harus kita lakukan ketika kita menggunakan Socket biasa. Selain itu, jPOS juga mendukung beberapa protokol-protokol yang biasa digunakan dalam implementasi ISO 8583. Untuk dapat menggunakan jpos ada beberapa hal dasar yang harus kita ketahui yaitu :
ISOPackager
Packager atau ISOPackager pada library library jPOS ini digunakan sebagai definisi panjang dan tipe data tiap-tiap Data Element yang akan digunakan dalam komunikasi. Ada banyak contoh packager yang dapat kita lihat dalam direktori jpos/dist/cfg/packager yang salah satu contoh-nya yaitu packager untuk iso93ascii.xml seperti dibawah ini:
- packager/iso93ascii.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE isopackager SYSTEM "genericpackager.dtd"> <!-- ISO 8583:1993 (ASCII) field descriptions for GenericPackager --> <isopackager> <isofield id="0" length="4" name="Message Type Indicator" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="1" length="16" name="Bitmap" class="org.jpos.iso.IFA_BITMAP"/> <isofield id="2" length="19" name="Primary Account number" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="3" length="6" name="Processing Code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="4" length="12" name="Amount, Transaction" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="5" length="12" name="Amount, Reconciliation" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="6" length="12" name="Amount, Cardholder billing" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="7" length="8" name="Date and time, transmission" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="8" length="8" name="Amount, Cardholder billing fee" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="9" length="8" name="Conversion rate, Reconciliation" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="10" length="8" name="Conversion rate, Cardholder billing" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="11" length="6" name="Systems trace audit number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="12" length="6" name="Date and time, Local transaction" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="13" length="4" name="Date, Effective" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="14" length="4" name="Date, Expiration" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="15" length="6" name="Date, Settlement" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="16" length="4" name="Date, Conversion" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="17" length="4" name="Date, Capture" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="18" length="4" name="Merchant type" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="19" length="3" name="Country code, Acquiring institution" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="20" length="3" name="Country code, Primary account number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="21" length="3" name="Country code, Forwarding institution" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="22" length="12" name="Point of service data code" class="org.jpos.iso.IF_CHAR"/> <isofield id="23" length="3" name="Card sequence number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="24" length="3" name="Function code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="25" length="4" name="Message reason code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="26" length="4" name="Card acceptor business code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="27" length="1" name="Approval code length" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="28" length="6" name="Date, Reconciliation" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="29" length="3" name="Reconciliation indicator" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="30" length="24" name="Amounts, original" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="31" length="99" name="Acquirer reference data" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="32" length="11" name="Acquirer institution identification code" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="33" length="11" name="Forwarding institution identification code" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="34" length="28" name="Primary account number, extended" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="35" length="37" name="Track 2 data" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="36" length="104" name="Track 3 data" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="37" length="12" name="Retrieval reference number" class="org.jpos.iso.IF_CHAR"/> <isofield id="38" length="6" name="Approval code" class="org.jpos.iso.IF_CHAR"/> <isofield id="39" length="3" name="Action code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="40" length="3" name="Service code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="41" length="8" name="Card acceptor terminal identification" class="org.jpos.iso.IF_CHAR"/> <isofield id="42" length="15" name="Card acceptor identification code" class="org.jpos.iso.IF_CHAR"/> <isofield id="43" length="99" name="Card acceptor name/location" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="44" length="99" name="Additional response data" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="45" length="76" name="Track 1 data" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="46" length="204" name="Amounts, Fees" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="47" length="999" name="Additional data - national" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="48" length="999" name="Additional data - private" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="49" length="3" name="Currency code, Transaction" class="org.jpos.iso.IF_CHAR"/> <isofield id="50" length="3" name="Currency code, Reconciliation" class="org.jpos.iso.IF_CHAR"/> <isofield id="51" length="3" name="Currency code, Cardholder billing" class="org.jpos.iso.IF_CHAR"/> <isofield id="52" length="8" name="Personal identification number [PIN] data" class="org.jpos.iso.IFA_BINARY"/> <isofield id="53" length="48" name="Security related control information" class="org.jpos.iso.IFA_LLBINARY"/> <isofield id="54" length="120" name="Amounts, additional" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="55" length="255" name="IC card system related data" class="org.jpos.iso.IFA_LLLBINARY"/> <isofield id="56" length="35" name="Original data elements" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="57" length="3" name="Authorization life cycle code" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="58" length="11" name="Authorizing agent institution Id Code" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="59" length="999" name="Transport data" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="60" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="61" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="62" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="63" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="64" length="8" name="Message authentication code field" class="org.jpos.iso.IFA_BINARY"/> <isofield id="65" length="8" name="Reserved for ISO use" class="org.jpos.iso.IFA_BINARY"/> <isofield id="66" length="204" name="Amounts, original fees" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="67" length="2" name="Extended payment data" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="68" length="3" name="Country code, receiving institution" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="69" length="3" name="Country code, settlement institution" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="70" length="3" name="Country code, authorizing agent Inst." class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="71" length="8" name="Message number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="72" length="999" name="Data record" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="73" length="6" name="Date, action" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="74" length="10" name="Credits, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="75" length="10" name="Credits, reversal number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="76" length="10" name="Debits, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="77" length="10" name="Debits, reversal number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="78" length="10" name="Transfer, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="79" length="10" name="Transfer, reversal number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="80" length="10" name="Inquiries, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="81" length="10" name="Authorizations, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="82" length="10" name="Inquiries, reversal number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="83" length="10" name="Payments, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="84" length="10" name="Payments, reversal number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="85" length="10" name="Fee collections, number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="86" length="16" name="Credits, amount" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="87" length="16" name="Credits, reversal amount" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="88" length="16" name="Debits, amount" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="89" length="16" name="Debits, reversal amount" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="90" length="10" name="Authorizations, reversal number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="91" length="3" name="Country code, transaction Dest. Inst." class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="92" length="3" name="Country code, transaction Orig. Inst." class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="93" length="11" name="Transaction Dest. Inst. Id code" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="94" length="11" name="Transaction Orig. Inst. Id code" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="95" length="99" name="Card issuer reference data" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="96" length="999" name="Key management data" class="org.jpos.iso.IFA_LLLBINARY"/> <isofield id="97" length="17" name="Amount, Net reconciliation" class="org.jpos.iso.IFA_AMOUNT"/> <isofield id="98" length="25" name="Payee" class="org.jpos.iso.IF_CHAR"/> <isofield id="99" length="11" name="Settlement institution Id code" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="100" length="11" name="Receiving institution Id code" class="org.jpos.iso.IFA_LLNUM"/> <isofield id="101" length="17" name="File name" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="102" length="28" name="Account identification 1" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="103" length="28" name="Account identification 2" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="104" length="100" name="Transaction description" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="105" length="16" name="Credits, Chargeback amount" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="106" length="16" name="Debits, Chargeback amount" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="107" length="10" name="Credits, Chargeback number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="108" length="10" name="Debits, Chargeback number" class="org.jpos.iso.IFA_NUMERIC"/> <isofield id="109" length="84" name="Credits, Fee amounts" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="110" length="84" name="Debits, Fee amounts" class="org.jpos.iso.IFA_LLCHAR"/> <isofield id="111" length="999" name="Reserved for ISO use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="112" length="999" name="Reserved for ISO use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="113" length="999" name="Reserved for ISO use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="114" length="999" name="Reserved for ISO use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="115" length="999" name="Reserved for ISO use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="116" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="117" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="118" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="119" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="120" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="121" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="122" length="999" name="Reserved for national use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="123" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="124" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="125" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="126" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="127" length="999" name="Reserved for private use" class="org.jpos.iso.IFA_LLLCHAR"/> <isofield id="128" length="8" name="Message authentication code field" class="org.jpos.iso.IFA_BINARY"/> </isopackager>
- id.web.martinusadyh.iso8583.jpos.CustomPackager
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
package id.web.martinusadyh.iso8583.jpos; import org.jpos.iso.IFA_AMOUNT; import org.jpos.iso.IFA_BINARY; import org.jpos.iso.IFA_BITMAP; import org.jpos.iso.IFA_LLCHAR; import org.jpos.iso.IFA_LLLCHAR; import org.jpos.iso.IFA_LLNUM; import org.jpos.iso.IFA_NUMERIC; import org.jpos.iso.IFB_BINARY; import org.jpos.iso.IF_CHAR; import org.jpos.iso.ISOBasePackager; import org.jpos.iso.ISOFieldPackager; /** * * @author Martinus Ady H <mrt.itnewbies@gmail.com> */ public class CustomPackager extends ISOBasePackager { public CustomPackager() { setFieldPackager(new ISOFieldPackager[]{ /*000*/new IFA_NUMERIC(4, "Message Type Indicator"), /*001*/ new IFA_BITMAP(16, "BIT MAP"), /*002*/ new IFA_LLNUM(19, "PAN - PRIMARY ACCOUNT NUMBER"), /*003*/ new IFA_NUMERIC(6, "PROCESSING CODE"), /*004*/ new IFA_NUMERIC(12, "AMOUNT, TRANSACTION"), /*005*/ new IFA_NUMERIC(12, "AMOUNT, SETTLEMENT"), /*006*/ new IFA_NUMERIC(12, "AMOUNT, CARDHOLDER BILLING"), /*007*/ new IFA_NUMERIC(10, "TRANSMISSION DATE AND TIME"), /*008*/ new IFA_NUMERIC(8, "AMOUNT, CARDHOLDER BILLING FEE"), /*009*/ new IFA_NUMERIC(8, "CONVERSION RATE, SETTLEMENT"), /*010*/ new IFA_NUMERIC(8, "CONVERSION RATE, CARDHOLDER BILLING"), /*011*/ new IFA_NUMERIC(6, "SYSTEM TRACE AUDIT NUMBER"), /*012*/ new IFA_NUMERIC(6, "TIME, LOCAL TRANSACTION"), /*013*/ new IFA_NUMERIC(4, "DATE, LOCAL TRANSACTION"), /*014*/ new IFA_NUMERIC(4, "DATE, EXPIRATION"), /*015*/ new IFA_NUMERIC(4, "DATE, SETTLEMENT"), /*016*/ new IFA_NUMERIC(4, "DATE, CONVERSION"), /*017*/ new IFA_NUMERIC(4, "DATE, CAPTURE"), /*018*/ new IFA_NUMERIC(4, "MERCHANTS TYPE"), /*019*/ new IFA_NUMERIC(3, "ACQUIRING INSTITUTION COUNTRY CODE"), /*020*/ new IFA_NUMERIC(3, "PAN EXTENDED COUNTRY CODE"), /*021*/ new IFA_NUMERIC(3, "FORWARDING INSTITUTION COUNTRY CODE"), /*022*/ new IFA_NUMERIC(3, "POINT OF SERVICE ENTRY MODE"), /*023*/ new IFA_NUMERIC(3, "CARD SEQUENCE NUMBER"), /*024*/ new IFA_NUMERIC(3, "NETWORK INTERNATIONAL IDENTIFIEER"), /*025*/ new IFA_NUMERIC(2, "POINT OF SERVICE CONDITION CODE"), /*026*/ new IFA_NUMERIC(2, "POINT OF SERVICE PIN CAPTURE CODE"), /*027*/ new IFA_NUMERIC(1, "AUTHORIZATION IDENTIFICATION RESP LEN"), /*028*/ new IFA_AMOUNT(9, "AMOUNT, TRANSACTION FEE"), /*029*/ new IFA_AMOUNT(9, "AMOUNT, SETTLEMENT FEE"), /*030*/ new IFA_AMOUNT(9, "AMOUNT, TRANSACTION PROCESSING FEE"), /*031*/ new IFA_AMOUNT(9, "AMOUNT, SETTLEMENT PROCESSING FEE"), /*032*/ new IFA_LLNUM(11, "ACQUIRING INSTITUTION IDENT CODE"), /*033*/ new IFA_LLNUM(11, "FORWARDING INSTITUTION IDENT CODE"), /*034*/ new IFA_LLCHAR(28, "PAN EXTENDED"), /*035*/ new IFA_LLNUM(37, "TRACK 2 DATA"), /*036*/ new IFA_LLLCHAR(104, "TRACK 3 DATA"), /*037*/ new IF_CHAR(12, "RETRIEVAL REFERENCE NUMBER"), /*038*/ new IF_CHAR(6, "AUTHORIZATION IDENTIFICATION RESPONSE"), /*039*/ new IF_CHAR(2, "RESPONSE CODE"), /*040*/ new IF_CHAR(3, "SERVICE RESTRICTION CODE"), /*041*/ new IF_CHAR(8, "CARD ACCEPTOR TERMINAL IDENTIFICACION"), /*042*/ new IF_CHAR(15, "CARD ACCEPTOR IDENTIFICATION CODE"), /*043*/ new IF_CHAR(40, "CARD ACCEPTOR NAME/LOCATION"), /*044*/ new IFA_LLCHAR(25, "ADITIONAL RESPONSE DATA"), /*045*/ new IFA_LLCHAR(76, "TRACK 1 DATA"), /*046*/ new IFA_LLLCHAR(999, "ADITIONAL DATA - ISO"), /*047*/ new IFA_LLLCHAR(999, "ADITIONAL DATA - NATIONAL"), /*048*/ new IFA_LLLCHAR(999, "ADITIONAL DATA - PRIVATE"), /*049*/ new IF_CHAR(3, "CURRENCY CODE, TRANSACTION"), /*050*/ new IF_CHAR(3, "CURRENCY CODE, SETTLEMENT"), /*051*/ new IF_CHAR(3, "CURRENCY CODE, CARDHOLDER BILLING"), /*052*/ new IFB_BINARY(8, "PIN DATA"), /*053*/ new IFA_NUMERIC(16, "SECURITY RELATED CONTROL INFORMATION"), /*054*/ new IFA_LLLCHAR(120, "ADDITIONAL AMOUNTS"), /*055*/ new IFA_LLLCHAR(999, "RESERVED ISO"), /*056*/ new IFA_LLLCHAR(999, "RESERVED ISO"), /*057*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL"), /*058*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL"), /*059*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL"), /*060*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE"), /*061*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE"), /*062*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE"), /*063*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE"), /*064*/ new IFA_BINARY(8, "MESSAGE AUTHENTICATION CODE FIELD"), /*065*/ new IFA_BINARY(8, "BITMAP, EXTENDED"), /*066*/ new IFA_NUMERIC(1, "SETTLEMENT CODE"), /*067*/ new IFA_NUMERIC(2, "EXTENDED PAYMENT CODE"), /*068*/ new IFA_NUMERIC(3, "RECEIVING INSTITUTION COUNTRY CODE"), /*069*/ new IFA_NUMERIC(3, "SETTLEMENT INSTITUTION COUNTRY CODE"), /*070*/ new IFA_NUMERIC(3, "NETWORK MANAGEMENT INFORMATION CODE"), /*071*/ new IFA_NUMERIC(4, "MESSAGE NUMBER"), /*072*/ new IFA_NUMERIC(4, "MESSAGE NUMBER LAST"), /*073*/ new IFA_NUMERIC(6, "DATE ACTION"), /*074*/ new IFA_NUMERIC(10, "CREDITS NUMBER"), /*075*/ new IFA_NUMERIC(10, "CREDITS REVERSAL NUMBER"), /*076*/ new IFA_NUMERIC(10, "DEBITS NUMBER"), /*077*/ new IFA_NUMERIC(10, "DEBITS REVERSAL NUMBER"), /*078*/ new IFA_NUMERIC(10, "TRANSFER NUMBER"), /*079*/ new IFA_NUMERIC(10, "TRANSFER REVERSAL NUMBER"), /*080*/ new IFA_NUMERIC(10, "INQUIRIES NUMBER"), /*081*/ new IFA_NUMERIC(10, "AUTHORIZATION NUMBER"), /*082*/ new IFA_NUMERIC(12, "CREDITS, PROCESSING FEE AMOUNT"), /*083*/ new IFA_NUMERIC(12, "CREDITS, TRANSACTION FEE AMOUNT"), /*084*/ new IFA_NUMERIC(12, "DEBITS, PROCESSING FEE AMOUNT"), /*085*/ new IFA_NUMERIC(12, "DEBITS, TRANSACTION FEE AMOUNT"), /*086*/ new IFA_NUMERIC(16, "CREDITS, AMOUNT"), /*087*/ new IFA_NUMERIC(16, "CREDITS, REVERSAL AMOUNT"), /*088*/ new IFA_NUMERIC(16, "DEBITS, AMOUNT"), /*089*/ new IFA_NUMERIC(16, "DEBITS, REVERSAL AMOUNT"), /*090*/ new IFA_NUMERIC(42, "ORIGINAL DATA ELEMENTS"), /*091*/ new IF_CHAR(1, "FILE UPDATE CODE"), /*092*/ new IF_CHAR(2, "FILE SECURITY CODE"), /*093*/ new IF_CHAR(5, "RESPONSE INDICATOR"), /*094*/ new IF_CHAR(7, "SERVICE INDICATOR"), /*095*/ new IF_CHAR(42, "REPLACEMENT AMOUNTS"), /*096*/ new IFA_BINARY(8, "MESSAGE SECURITY CODE"), /*097*/ new IFA_AMOUNT(17, "AMOUNT, NET SETTLEMENT"), /*098*/ new IF_CHAR(25, "PAYEE"), /*099*/ new IFA_LLNUM(11, "SETTLEMENT INSTITUTION IDENT CODE"), /*100*/ new IFA_LLNUM(11, "RECEIVING INSTITUTION IDENT CODE"), /*101*/ new IFA_LLCHAR(17, "FILE NAME"), /*102*/ new IFA_LLCHAR(28, "ACCOUNT IDENTIFICATION 1"), /*103*/ new IFA_LLCHAR(28, "ACCOUNT IDENTIFICATION 2"), /*104*/ new IFA_LLLCHAR(100, "TRANSACTION DESCRIPTION"), /*105*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*106*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*107*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*108*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*109*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*110*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*111*/ new IFA_LLLCHAR(999, "RESERVED ISO USE"), /*112*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*113*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*114*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*115*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*116*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*117*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*118*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*119*/ new IFA_LLLCHAR(999, "RESERVED NATIONAL USE"), /*120*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*121*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*122*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*123*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*124*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*125*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*126*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*127*/ new IFA_LLLCHAR(999, "RESERVED PRIVATE USE"), /*128*/ new IFA_LLLCHAR(999, "MAC 2") }); } }
- Penggunaan Packager
10 11 12 13 14
// Untuk packager bertipe xml ISOPackager packager = new GenericPackager("packager/iso93ascii.xml"); // Untuk packager bertipe class ISOPackager packager = new CustomPackager();
saya mencari jpos.jar nya dimana ya, koq tidak ada dalam paket
ReplyDeleteterimakasih