pos url 手冊¸國信託商業銀行url 技術串接手冊 7 2 系統說明 2.1 pos url...

92
中國信託商業銀行 URL 技術串接手冊 1 中國信託商業銀行 信用卡網路線上付款中心 URL 技術串接手冊 ChinaTrust Commercial BankChinaTrustSystem Operation Manual 本手冊僅針對 URL 整合說明 This Manual is for URL Integration Version 1.6.0 2014/08/20

Upload: lamnga

Post on 16-Jun-2018

364 views

Category:

Documents


2 download

TRANSCRIPT

  • URL

    1

    URL

    ChinaTrust Commercial BankChinaTrust

    System Operation Manual

    URL

    This Manual is for URL Integration

    Version 1.6.0

    2014/08/20

  • URL

    2

    /

    (yyyy/mm/dd)

    2014/08/20 SSLAuthUI merID V1.6.0

    2014/06/20 FTP V1.5.0

    2014/02/21

    v1.47

  • URL

    3

    U

    1 .............................................................. 6

    2 .............................................................. 7

    2.1 POS URL ........................................................................................................ 7

    3 .............................................................. 8

    3.1 ............................................................................................................................ 8

    3.2 .................................................................................................................... 9

    3.3 SSLAUTHUI .................................................................................................... 10

    3.4 SSLAUTHUI .....................................................................................................11

    3.5 .................................................................................................. 12

    3.5.1 Java ........................................................................................................................... 12

    3.5.1.1 auth_in_mac_24 class ........................................................................................ 12

    3.5.1.2 auth_out_mac_24 class ...................................................................................... 14

    3.5.1.3 Eecrypt class ...................................................................................................... 15

    3.5.1.4 Decrypt class ...................................................................................................... 21

    3.5.1.5 Java ........................................................................................................... 26

    (InMac) --JAVA ................................................................................. 26

    URL (URLEnc) --JAVA ........................................................... 26

    URL (Decrypt) JAVA ........................................................... 27

    3.5.2 PHP ........................................................................................................................... 28

    3.5.2.1 auth_in_mac ....................................................................................................... 28

    3.5.2.2 get_auth_urlenc .................................................................................................. 29

    3.5.2.3 auth_out_mac ..................................................................................................... 31

    3.5.2.4 gendecrypt .......................................................................................................... 33

    3.5.2.5 PHP ........................................................................................................... 34

    URL (URLEnc) --PHP .............................................................. 34

    URL (Decrypt) --PHP ............................................................... 35

    3.5.3 Dot NET .................................................................................................................... 37

    3.5.3.1 class Encrypt (24 ) ..................................................................... 37

    3.5.3.2 Class Decrypt (24 ) .................................................................... 38

    3.5.3.3 Dot NET .................................................................................................... 39

    URL (Encrypt)Dot NET ....................................................... 39

    URL (Decrypt) Dot NET ...................................................... 40

    3.6 SSLAUTHUI () ............................................................................... 41

    3.7 AUTHRESURL() ...................................................................... 43

    3.8 .............................................................................................. 44

  • URL

    4

    4 ............................................................. 50

    4.1 .......................................................................................................................... 50

    4.2 .............................................................................................................. 52

    5 ............................................................ 53

    5.1 ............................................................................................................. 53

    5.2 ..................................................................................................................... 54

    5.2.1 ...................................................................................................... 55

    5.2.2 .................................................................................................. 57

    5.2.3 ...................................................................................................... 57

    5.2.4 ...................................................................................................... 58

    5.3 ......................................................................................................................... 59

    5.3.1 API KEY ....................................................................... 59

    5.3.2 ...................................................................................... 59

    6 ............................................................ 60

    7 ................................................... 61

    7.1 .......................................................................................................................... 62

    7.1.1 ............................................................................................... 62

    7.1.2 .............................................................................. 63

    7.2 .......................................................................................................................... 65

    7.2.1 ...................................................................................................... 65

    8 ......................................................... 67

    8.1 ...................................................................................................... 67

    8.2 ...................................................................................................... 70

    8.3 CSV .................................................................................................. 73

    8.3.1 ................................................................................................... 73

    8.3.2 ........................................................................... 75

    8.4 .......................................................................................................... 76

    8.5 .................................................................................................. 77

    8.6 ...................................................................................................... 79

    9. FTP .............................................. 80

    9.1 .............................................................................................................. 80

    9.2FTP ........................................................................................................... 80

    9.3 ...................................................................................................... 81

    10 ...................................................... 83

    10.1 POS ........................................................................................................... 83

    10.2 ................................................................................................... 92

  • URL

    5

  • URL

    6

    1

    Chinatrust

    24 (0800-211-211)

  • URL

    7

    2

    2.1 POS URL

    POS URL

    HTML HIDDEN POS URL

    CGI

    IE

    Html hidden

    24bytes

    POS URL

    Step1

    (Re-direct)

    Step3

    Step2

  • URL

    8

    3

    3.1

    Action URL HTML POST

    POS URL

    SSLAuthUI.jsp JSP

    POS URL

    Error Code

    HTTPS HTTPS

    POS URL UTF-8

    UTF-8

    POS URL session

    (single frame)

    (POS URL multi-frames )

  • URL

    9

    3.2

    SSLAuthUI

    HTML SSLAuthUI

    SSLAuthUI HTTPS POST METHOD

    URL HTTPS

    URL

  • URL

    10

    3.3 SSLAuthUI

    SSLAuthUI JSP

    URLEnc

    (1) 5.3.1 24 bytes

    Key

    (2) 3.7 43

    JAVA 28 function 3.6.1

    PHP 36 function 3.6.2

    Dot NET 42 function 3.6.3

    merID

    327 SSLAuthUI

    11

  • URL

    11

    3.4 SSLAuthUI

    URLResEnc ()

    3.7

    merID ()

    merID Key

  • URL

    12

    3.5

    JAVAPHP Dot NET

    3.5.1 Java

    posapi_mac_j_npg.jar Java

    3.5.1.1 auth_in_mac_24 class

    3.5.2

    auth_out_mac_24

    getMac

    getErrCode

    auth_in_mac_24(String MerchantID, String TerminalID, String lidm,

    String purchAmt, String txType, String Option, String Key)

    MerchantID 13

    TerminalID 8

    Lidm

    19

    _

    purchAmt

    1~7 Bytes

    txType

    0

    1

    2

    4

    Option

    (1) 1

  • URL

    13

    (2)

    (3)

    (4)

    Key URL

    getMac()

    String getMac();

    getErrCode()

    String getErrCode();

    9.1

  • URL

    14

    3.5.1.2 auth_out_mac_24 class

    3.5.2

    auth_out_mac_24(String status, String errCode, String authCode,

    String authAmt,String lidm, String OffsetAmt,

    String OriginalAmt, String UtilizedPoint,

    String Option, String Last4digitPAN, String Key)

    status , 1 2

    errCode , 0 2

    authCode 6

    authAmt 1~7

    lidm

    19

    _

    OffsetAmt , 1~7

    OriginalAmt , 1~7

    UtilizedPoint , , 1~7

    Option

    (1) 1

    (2)

    (3)

    (4)

    Last4digitPA , 0 4

    Key URL

    getMac()

    String getMac();

  • URL

    15

    getErrCode()

    String getErrCode();

    9.1

    3.5.1.3 Eecrypt class

    3.5.2

    Encryption

    getEnc

    getEncErrCode

    setMerchantID

    setTerminalID

    setMerchantName

    setLidm

    setMerID

    setCustomize

    setPurchAmt

    setTxType

    setNumberOfPay

    setAutoCap

    setProdCode

    setInMac

    setAuthResURL

    setPid

    setBirthday

    setOrderDesc

    setTermSeq

  • URL

    16

    3.5.1.3.1 Encryption ()

    void Encryption (String key)

    key URL

    3.5.1.3.2 getEnc ()

    String getEnc ();

    3.5.1.3.3 getEncErrCode()

    getEncErrcode

    int getEncErrCode ();

    9.2POSAPI_MAC

    3.5.1.3.4 setMerchantID()

    ()

    void setMerchantID (String merchantId);

    merchantId MerchantID

    3.5.1.3.5 setTerminalID ()

    ()

  • URL

    17

    void setTerminalID (String terminalId);

    terminalId TerminalID

    3.5.1.3.6 setMerchantName()

    ()

    void setMerchantName (String merchantName);

    merchantName BIG5

    3.5.1.3.7 setLidm ()

    ()

    void setLidm (String lidm);

    lidm

    3.5.1.3.8 setMerID ()

    ()

    void setMerID (String merid);

    merid MerID

    3.5.1.3.9 setCustomize ()

    ()

    void setCustomize (String customize);

  • URL

    18

    customize

    1

    2

    3

    5

    3.5.1.3.10 setPurchAmt ()

    void setPurchAmt (String purchAmt);

    purchAmt

    3.5.1.3.11 setTxType ()

    ()

    void setTxType (String txType);

    txType

    0

    1

    2

    3

    3.5.1.3.12 setNumberOfPay ()

    ()

    void setNumberOfPay (String numberOfPay);

  • URL

    19

    numberOfPay

    3.5.1.3.13 setAutoCap ()

    ()

    void setAutoCap (String autoCap);

    autoCap

    0

    1

    3.5.1.3.14 setProdCode ()

    ()

    void setProdCode (String prodCode);

    prodCode

    3.5.1.3.16 setInMac ()

    ()

    void setInMac (String inMac);

    inMac auth_in_mac_24()

    3.5.1.3.17 setAuthResURL ()

    ()

    void setAuthResURL (String authResURL);

  • URL

    20

    authResURL

    @?&$#

    3.5.1.3.18 setPid ()

    ()

    void setPid (String pid);

    pid

    3.5.1.3.19 setBirthday ()

    ()

    void setBirthday (String birthday);

    irthday

    3.5.1.3.20 setOrderDesc ()

    ()

    void setOrderDesc (String orderDesc);

    orderDesc BIG5

  • URL

    21

    3.5.1.4 Decrypt class

    3.5.2

    Decryption

    getDec

    getDecErrCode

    getStatus

    getErrcode

    getAuthCode

    getAuthAmt

    getLidm

    getXid

    getMerID

    getLast4digitPAN

    getOffsetAmt

    getOriginalAmt

    getUtilizedPoint

    getAwardedPoint

    getPointBalance

    getProdCode

    getErrDesc

    getOutMac

    getCheckURLOutMac (OutMac)

    getNumberOPay

    getTermSeq

    getCardNumber (654321******1234)

    3.5.1.4.1 Decryption ()

    void Decryption (String URLResEnc, String key)

    URLResEnc 3.8 AuthResURL()

    URLResEnc

  • URL

    22

    key URL

    9.2

    3.5.1.4.2 getDec ()

    String getDec ();

    3.5.1.4.3 getDecErrCode ()

    getDecErrCode

    int getDecErrCode ();

    13.2POSAPI_MAC

    3.5.1.4.4 getStatus ()

    status

    String getStatus ();

    status

    3.5.1.4.5 getErrcode ()

    Errcode

    String getErrcode ();

    errcode

    3.5.1.4.6 getAuthCode ()

    AuthCode

    String getAuthCode ();

    authCode

  • URL

    23

    3.5.1.4.7 getErrDesc ()

    errDesc

    String getErrDesc ();

    errDesc

    3.5.1.4.8 getOutMac ()

    OutMac

    String getOutMac ();

    OutMac

    3.5.1.4.9 getMerID ()

    merID

    String getMerID ();

    merID

    3.5.1.4.10 getAuthAmt ()

    authAmt

    String getAuthAmt ();

    authAmt

    3.5.1.4.11 getLidm ()

    lidm

    String getLidm ();

    lidm

    3.5.1.4.12 getXid ()

    xid

  • URL

    24

    String getXid ();

    xid

    3.5.1.4.13 getLast4digitPAN ()

    Last4digitPAN

    String getLast4digitPAN ();

    Last4digitPAN

    3.5.1.4.14 getOffsetAmt ()

    OffsetAmt

    String getOffsetAmt ();

    OffsetAmt

    3.5.1.4.15 String OriginalAmt ()

    OriginalAmt

    String getOriginalAmt ();

    OriginalAmt

    3.5.1.4.16 getUtilizedPoint ()

    UtilizedPoint

    String getUtilizedPoint ();

    UtilizedPoint

    3.5.1.4.17 getAwardedPoint ()

    AwardedPoint

    String getAwardedPoint ();

    AwardedPoint

  • URL

    25

    3.5.1.4.18 getPointBalance ()

    PointBalance

    String getPointBalance ();

    PointBalance

    3.5.1.4.19 getProdCode ()

    ProdCode

    String getProdCode ();

    ProdCode

    3.5.1.4.20 getCheckURLOutMac ()

    URLOutMac

    boolean getCheckURLOutMac ();

    0 -1 MAC

    MAC

    3.5.1.4.21 getNumberOfPay ()

    NumberOfPay

    String getNumberOfPay ();

    NumberOfPay

    3.5.1.4.22 getTermSeq ()

    TermSeq

    String getTermSeq ();

    TermSeq

  • URL

    26

    3.5.1.4.23 getCardNumber ()

    (654321******1234)

    String getCardNumber ();

    (654321******1234)

    3.5.1.5 Java

    (InMac) --JAVA

    String key = "123456789012345678901234";

    String MerchantID = "8221234567890";

    String TerminalID = "12345678";

    String lidm = "order001";

    String Option = "1";

    String txType = "0";

    String purchAmt = "1000";

    auth_in_mac_24 aim = new auth_in_mac_24(MerchantID, TerminalID, lidm, purchAmt, txType, Option, key);

    String inMac= aim.getMAC();

    URL (URLEnc) --JAVA

    Encrypt enc= new Encrypt();

    enc.setMerchantID(merchantID);

    enc.setTerminalID(terminalID);

    enc.setMerchantName(merchantName);

    enc.setLidm(lidm);

    enc.setMerID(merID);

    enc.setCustomize("0");//

    enc.setPurchAmt(purchAmt);

    enc.setTxType("0");

    enc.setNumberOfPay("1");

    enc.setAutoCap(autoCap);

    enc.setProdCode(prodCode);

    enc.setInMac(inMac);//auth_in_mac_24()

    enc.setPid(pid);

    enc.setBirthday(birthday);

    enc.setOrderDesc(orderDesc);//184

    enc.Encryption(key);String URLEnc=enc.getEnc();

  • URL

    27

    URL (Decrypt) JAVA

    Decrypt dec = new Decrypt();

    dec.Decryption(URLResEnc, key); //3.8AuthResURL()URLResEnc

    String Errcode = dec.getErrcode();

    String ErrDesc = dec.getErrDesc();

    String ErrorCode = dec.getErrorCode();

    String ErrorMessage = dec.getErrorMessage();

    String merID=dec.getMerID();

    String lidm = dec.getLidm();

    String AuthAmt = dec.getAuthAmt();

    String AuthCode = dec.getAuthCode();

    String Termseq = dec.getTermSeq();

    String CardNumber = dec.getCardNumber();

    // ----------------3D-------------------

    String Last4digitPAN = dec.getLast4digitPAN();

    String Expiry = dec.getExpiry();

    String CAVV = dec.getCAVV();

    String ECI = dec.getECI();

    String FeeCharge = dec.getFeeCharge();

  • URL

    28

    3.5.2 PHP

    PHP5.3( 5.3) php_mcrypt

    PHP

    PHP5.4

    auth_mpi_mac.php

    3.5.2.1 auth_in_mac

    auth_in_mac auth_mpi_mac.php

    auth_in_mac($MerchantID,$TerminalID,$lidm,$purchAmt,$txType,$Option,$Key,$MerchantNa

    me,$AuthResURL,$OrderDetail,$AutoCap,$Customize,$MACString,$debug)

    MerchantID 13

    TerminalID 8

    lidm

    19

    _

    purchAmt

    txType

    0

    1

    2

    4

    Option

    1

  • URL

    29

    Key URL

    MerchantName BIG5

    AuthResURL

    @#%?&

    OrderDetail BIG5

    AutoCap

    0

    1

    Customize

    1

    2

    3

    5

    debug () 0 1

    String (HEX)

    3.5.2.2 get_auth_urlenc

    get_auth_urlenc auth_mpi_mac.php

    get_auth_urlenc

    ($MerchantID,$TerminalID,$lidm,$purchAmt,$txType,$Option,$Key,$MerchantName,$AuthResURL,$O

    rderDetail,$AutoCap,$Customize,$MACString,$debug)

    MerchantID 13

    TerminalID 8

    lidm

  • URL

    30

    19

    _

    purchAmt

    txType

    0

    1

    2

    4

    Option

    1

    Key URL

    MerchantName BIG5

    AuthResURL

    @#%?&

    OrderDetail BIG5

    AutoCap

    0

    1

    Customize

    1

    2

    3

    5

    MACString auth_in_mac() InMac

    debug () 0 1

    String (HEX)

  • URL

    31

    3.5.2.3 auth_out_mac

    auth_out_mac auth_mpi_mac.php

    auth_out_mac($status,$errCode,$authCode,$authAmt,$lidm,$OffsetAmt,$Original

    Amt,$UtilizedPoint,$Option,$Last4digitPAN,$Key,$debug)

    status , 1 2

    errCode , 0 2

    authCode 6

    authAmt 1~7

    lidm

    19

    _

    OffsetAmt , 1~7

    OriginalAmt , 1~7

    UtilizedPoint , 1~7

    Option

    0

    1

    2

    4

    Last4digitPAN , 0 4

    Key URL

    debug () 0 1

    String (HEX)

  • URL

    32

    3.5.2.3 genencrypt

    genencrypt auth_mpi_mac.php

    genencrypt($encStr,$Key,$debug)

    EncRes

    Key URL

    debug () 0 1

    String

  • URL

    33

    3.5.2.4 gendecrypt

    auth_out_mac

    auth_mpi_mac.php

    gendecrypt($EncRes,$Key,$debug);

    EncRes 24

    Key URL

    debug () 0 1

    Array (HEX)

    status , 1 2

    errcode , 0 2

    authcode 6

    authamt 1~7

    merid

    lidm

    19

    _

    offsetamt , 1~7

    originalamt , 1~7

    utilizedpoint , 1~7

    last4digitpan , 0 4

    errdesc

    authresurl

    xid 40 (

    Unquie )

  • URL

    34

    awardedpoint

    pointbalance

    numberofpay 0 ~ 2 (

    )

    prodcode

    0 ~ 2 (

    )

    CardNumber (654321******1234)

    3.5.2.5 PHP

    URL (URLEnc) --PHP

  • URL

    35

    ?>

    URL (Decrypt) --PHP

  • URL

    36

    //if ($MACString == $EncArray['outmac']), then the result is right!

    ?>

  • URL

    37

    3.5.3 Dot NET

    ctcbMac.dll DotNET

    3.5.3.1 class Encrypt (24 )

    ProgID

    CTCB.Crypto. Encrypt

    MerchantID 13

    TerminalID 8

    OrderNo

    19

    _

    AuthAmt

    txType

    0

    1

    2

    4

    Key URL

    MerchantName BIG5

    AuthResURL

    @#%?&

    OrderDetail BIG5

    AutoCap

    0

    1

    Customize

    1

    2

  • URL

    38

    3

    5

    ProdCode

    0 ~ 2 (

    )

    NumberOfPay 0 ~ 2 (

    )

    EncodeData Key ()

    LastError ()

    EncodingType ()Encoding Big5

    ClearData MerchantID, TerminalID Key

    3.5.3.2 Class Decrypt (24 )

    ProgID

    CTCB.Crypto.Decrypt

    EncRes

    Status , 1 2

    ErrCode , 0 2

    AuthCode 6

    AuthAmt 1~7

    MerID

    OrderNo

    19

    _

    OffsetAmt , 1~7

    OriginalAmt , 1~7

    UtilizedPoint , 1~7

    Option

    txType=01

  • URL

    39

    txType=1

    txType=2

    txType=4

    Last4igitPAN , 0 4

    Key URL

    ErrDesc

    AuthResURL

    XID 40 (

    Unquie )

    AwardedPoint

    PointBalance

    ProdCode 0 ~ 2 (

    )

    NumberOfPay 0 ~ 2 (

    )

    LastError ()

    CardNumber (654321******1234)

    ClearData Key

    3.5.3.3 Dot NET

    URL (Encrypt)Dot NET

    Encrypt enc = new Encrypt();

    enc.MerchantID = "8220130000000";

    enc.TerminalID = "90000001";

    enc.OrderNo = "123";

    enc.AuthAmt = "78";

    enc.TxType = "0";

    enc.AuthResURL = "https://testepos.chinatrust.com.tw:5443/ctcb/newmac/ShowResParameter.jsp";

    enc.Key = "123456789012345678901234";

    enc.MerchantName = "";

    enc.AutoCap = "1";

    Console.WriteLine("----------- URL Encrypt -----------");

    if (enc.LastError == 0){

    Console.WriteLine("The encoded Msg is:{0}", enc.EncodeData);

  • URL

    40

    }else{

    Console.WriteLine("Invalid checking parameter. Error code: {0}", enc.LastError);

    }

    URL (Decrypt) Dot NET

    Decrypt dec = new Decrypt();

    dec.Key = "123456789012345678901234";

    dec.EncRes =

    "344F5B074BCB12E82FAEFE535B5FCC445F6C43DB180928531A34811B829C809D5AD3485F50C22DC3148B51321C7D528B90C97

    9B2A2CB4D4B079E3C786202161DB859CE6A3CD62A7C87317C5F5219AE6851C0C01AFC97C6502B6CBE435FFBF85A87FF85DACAF

    D4B7483ED777DA8F703E624E5FA24A2D11309C118D7AA1BD3A7E2F815A669B374598F05AB6D50C97D841C6AB885527D28866C7

    364541924EB0645784CB887679794F4412AC0EB6BB80E19554B133813AB2A7C0770D8416C5BACA292E98D7FBEEABA8C7612F8B

    AF56DB33B5BD2C4B7BE1ECC3003F18FAD011D0C91079DAD8330227C6C0A44A9C15EE1C73A291734FA22928B3FC87AF1DF6FB46

    7F2659173EB74AF050A"; //3.8AuthResURL()URLResEnc

    Console.WriteLine("----------- URL Decrypt -----------");

    if (dec.LastError == 0) {

    Console.WriteLine(":" + dec.Status);

    Console.WriteLine(":" + dec.ErrCode);

    Console.WriteLine(":" + dec.ErrDesc);

    Console.WriteLine(":" + dec.MerID);

    Console.WriteLine(":" + dec.AuthAmt);

    Console.WriteLine(":" + dec.OrderNo);

    Console.WriteLine(":" + dec.XID);

    Console.WriteLine(":" + dec.AuthCode);

    Console.WriteLine(":" + dec.Last4digitPAN);

    Console.WriteLine(":" + dec.CardNumber);

    Console.WriteLine(":" + dec.AuthResURL);

    }else{

    Console.WriteLine("Invalid checking parameter. Error code: {0}", dec.LastError);

    }

  • URL

    41

    3.6 SSLAuthUI ()

    msg

    Sample

    (Mer ID)

    URLEnc Java PHP

    Dot NET 3.6.2 3.6.3

    Encrypt enc= new Encrypt();

    enc.setMerchantID(merchantID);

    enc.setTerminalID(terminalID);

    enc.setMerchantName(merchantName);

    enc.setLidm(lidm);

    enc.setMerID(merID);

    enc.setCustomize("0");//

  • URL

    42

    enc.setPurchAmt(purchAmt);

    enc.setTxType("0");

    enc.setNumberOfPay("1");

    enc.setAutoCap(autoCap);

    enc.setProdCode(prodCode);

    enc.setInMac(getInMac());

    enc.setPid(pid);

    enc.setBirthday(birthday);

    enc.setOrderDesc(orderDesc);//184

    String URLEnc=enc.getEnc();

  • URL

    43

    3.7 AuthResURL()

    AuthResURL JSP

    xyz.jsp

    AuthResHandler

    3.5

  • URL

    44

    3.8

    AuthPage.htm ()

    CVC2

    ()

    ()

    Visa 3-D Secure

    MasterCard SecureCode

    JCB J/Secure

  • URL

    45

    AuthPage.htm

    .c-12 {

    FONT-SIZE: 12px; FONT-FAMILY: "Arial", "Helvetica", "sans-serif", ""

    }


  • URL

    46


    SSL PLUS


    Order Number


    Purchase Amount


    NT Dollars


    Credit Card Number

  • URL

    47


    3-digital
    Card Validation

    Code

    ,

    CVC2 is printed as last 3-digit value

    on signature pane

    [ / ]

    Expire Date

    /


    Format

    followed by Credit Card

  • URL

    48


    TWCA

    128bits SSL

    To Pay

  • URL

    49

    Cancel


  • URL

    50

    4

    4.1

    POS URL

    POS URL

  • URL

    51

    1.

    2.

    (POS URL)

    3.

    POS URL

  • URL

    52

    4.2

    /

    Pool

    Pool

    N

    *

    1.

    2.

    3. html hidden autocap=1

    []; autocap=0

    Chinatrust

    ()

    (

    )

  • URL

    53

    5

    5.1

  • URL

    54

    5.2

  • URL

    55

    5.2.1

    .htm .html

    1.2.3.4.5.

    .htm .html

  • URL

    56

    .htm .html

  • URL

    57

    5.2.2

    5.2.3

  • URL

    58

    5.2.4

  • URL

    59

    5.3

    5.3.1 API KEY

    POS URL ( 3D-Secure MPI )

    API key

    5.3.2

    Mac 3D-Secure MPI

    URL URL

    3.6

    API POS API 3D-Secure

  • URL

    60

    6

    0~9a~zA~Z

  • URL

    61

    7

  • URL

    62

    7.1

    (

    )

    7.1.1

    1

    2

    3 !

  • URL

    63

    7.1.2

    1

    2

    3

  • URL

    64

    4

  • URL

    65

    7.2

    7.2.1

    1

    .csv

  • URL

    66

    2

    3 .csv

  • URL

    67

    8

    8.1

    AAAAAAAAYYMMDD.SS

    AAAAAAAA: HyPOS EZ ( MerID Merchant ID)

    YY:

    MM:

    DD :

    SS: Serial No.

    128 128030116.01, 128030116.02

    \n\r

    (A, AN)

    (N)

    Header Record

    RECORD LENGTH 217 BYTE

    ()

    01 A 3 Header Record FHD V

    02 N 6 yymmdd V

    03 N 2 SS V

    04 N 8 V

    05 N 15 12300

    123.00

    V

    06 AN 183 V

  • URL

    68

    Detail Record

    RECORD LENGTH 217 BYTE

    ()

    01 A 3 Detail Record FDT V

    02 N 3 MerchantID

    V

    03 N 12 V

    04 AN 19

    _

    V

    05 N 2

    V

    06 AN 2 V

    07 A 12

    auth

    authfail

    sale

    salefail

    cap

    V

    08 N 13 V

    09.1 N 16 V

    09.2 CVC2 N 3

    CVC2 CVC2

    V

    09.3 N 6 YYYYMM

    200805

    V

    09.4 AN 26

    / 13

    Big5 , 4

    Big5

    V

  • URL

    69

    _

    10 N 8 Terminal ID V

    11 AN 15 Merchant ID V

    12 AN 6 V

    13

    (status) N 2

    V

    14

    (errcode)

    N 2 V

    15 AN 2

    V

    16 N 13 (

    )

    V

    17 N 13 (

    )

    V

    18 N 13 (

    )

    V

    19 N 13 (

    )

    V

    20 N 13 (

    )

    V

  • URL

    70

    8.2

    AAAAAAAAYYMMDD.SS

    AAAAAAAA: POS URL ( MerID Merchant ID)

    YY:

    MM:

    DD :

    SS: Serial No.

    128 128030116.01, 128030116.02

    \n\r

    (A, AN)

    (N)

    Header Record

    RECORD LENGTH 217 BYTE

    ()

    01 A 3 Header Record FHD V

    02 N 6 yymmdd V

    03 N 2 SS V

    04 N 8 V

    05 N 15 12300

    123.00

    V

    06 N 8 V

    07 N 15 12300

    123.00

    V

    08 AN 160 V

  • URL

    71

    Detail Record

    RECORD LENGTH 217 BYTE

    ()

    01 A 3 Detail Record FDT V

    02 N 3 MerchantID

    V

    03 N 12 V

    04 AN 19

    _

    V

    05 N 2 V

    06 N 2 DB

    CR

    V

    07 A 12

    cap

    capfail

    CapAmountEr

    credited

    creditfail

    CreditAmntE

    AuthcodeErr

    Disallowed/

    NoSuitableA

    V

    08 N 13

    DB

    CR

    V

    09 N 51 V

    10 N 8 Terminal ID V

  • URL

    72

    11 AN 15 Merchant ID V

    12 AN 6 V

    13

    (status) N 2

    V

    14

    (errcode)

    N 2 V

    15 AN 2 V

    16 N 13 V

    17 N 13 V

    18 N 13 V

    19 N 13 V

    20 N 13 V

  • URL

    73

    8.3 csv

    CSV

    8.3.1

    Detail Record

    01 A 3 Detail Record FDT V

    02 N 3 MerchantID V

    03 N 19 hh:mm:ss MM/DD/YYYY 17:37:31 11/15/2006 V

    04 AN 19 ( 19 Bytes) V

    05 N 2 0 V

    06 N 2

    -1:

    1

    3()

    4()

    5

    6

    V

    07.1 A 100 ; xxxxxx; yyyy/mm/dd

    ;

    ; xxxxxx

    ; xxxxxx

    ; xxxxxx; yyyy/mm/dd

    ; xxxxxx

    V

    07.2

    A 100 ; xxxxxx; yyyy/mm/dd

    ;

    ; xxxxxx

    ; xxxxxx

    ; xxxxxx; yyyy/mm/dd

    ; xxxxxx

    V

    08 N 13 V

    09.1 N 16 show V

    09.2

    09.3

    09.4 AN 12 V

  • URL

    74

    09.5 ECI N 2 ECI 0, 1, 2, 5, 6, 7 V

    09.6

    09.7

    10 N 8 Terminal ID V

    11 AN 15 Merchant ID V

    12 AN 6 6 V

    13

    (status)

    N 2 13 V

    14

    (errcode)

    N 2 13 V

    Header Tail

    01 A 3 Header Record FHD V

    02 N 6 yymmdd V

    03 N 2 "99" V

    04 N 8 V

    05

    N 15 V

    06 V

  • URL

    75

    8.3.2

    Detail Record

    01 AN 19 ( 19 Bytes) V

    02 N 19 hh:mm:ss MM/DD/YYYY 17:37:31 11/15/2006 V

    03 A 100 ;xxxxxx;yyyy/mm/dd

    ;

    ; xxxxxx

    ; xxxxxx

    ; xxxxxx;

    yyyy/mm/dd

    ; xxxxxx

    V

    04 N 16 V

    05 AN 6 ( 6 Bytes) V

    06 N 13 /( 13 Bytes) V

    07 ECI N 1 ECI ( 0,1,2,5,6,7) V

    Header Tail

    01 A 3 Header Record FHD V

    02 N 6 yymmdd V

    03 N 2 "99" V

    04 N 8 ( 8 Bytes) V

    05

    N 15 ( 15 Bytes) V

    06 1 V

  • URL

    76

    8.4

    CSV

    Detail Record

    01 AN ..40 40 bytes

    02 N 16 6 4

    654321XXXXXX1234

    03

    N 6 YYYYMMDDHHMMSS

    04 N 6

    05 N N

    06 N 1 1

    3

    4

    5

    7

    8

  • URL

    77

    8.5

    AAAAAAAA_BBBBBBBB_MMDDYYYY.SS

    AAAAAAAA:( UMerchant IDU)

    BBBBBBBBB:( UTerminalIDU)

    YYYY:

    MM:

    DD : .

    SS : Serial No

    8222370888601 71010001 8222370888601_71010001_12042004.01

    RECORD LENGTH 100 BYTE \n\r

    (A, AN)

    (N)

    Header Record

    01 A 1 Header Record H V

    02 N 99 V

    Detail Record

    01 A 1 Detail Record D V

    02 A 1 V

    03 AN 15 Merchant ID V

    04 A 1 V

    05 AN 19 V

    06 A 1 V

    07 A 6 V

    08 A 1 V

    09 A 8 MMDDYYYY V

    10 A 1 V

    11 N 7 V

    12 A 1 V

    13 A 8 MMDDYYYY V

    14 A 1 V

    15 A 8 MMDDYYYY V

    14 A 1 V

    16 A 3 ( 12.5 ) V

  • URL

    78

    17 A 1 V

    18 A 3 =D

    001= 002=

    V

    19 A 1 V

    20 A 1 A: U: D: V

    21 A 11 V

    Tail Record

    01 A 1 Tail Record T V

    02 N 99 V

  • URL

    79

    8.6

    ======== ============ ============

    001

    002

    003

    004

    005

    006

    007

    008

    009

    010

    011

    012

    013

    014

    015

    016

    017

    018

    019

    020

    021

    022

    023

    024

    025

    026

    027

  • URL

    80

    9. FTP

    /

    FTP FTP

    9.1

    A.

    8.2

    B. --> ""()

    8.3.2

    -YYYYMMDD.csv

    2244-20140223.csv

    9.2FTP

    []

    [MerchantID] Cap_[MerID] req

    .up

    .ok

    .err

    res

    .ok

    .ok

    Cap_[MerID] req

    .up

    .ok

    .err

    res

    .ok

    .ok

    DailyTxnsReport

    RPTyyyymmdd.TXTex.

  • URL

    81

    RPT20140321.TXT

    8228888888887 Cap_1715 req 1715131108.03

    1715131108.03.up

    1715131108.03.ok

    1715131108.03.err

    res 1715131108.03

    1715131108.03.ok

    2233-20140223.csv

    2233-20140223.csv.ok

    Cap_1716 req 1716131108.03

    1716131108.03.up

    1716131108.03.ok

    1716131108.03.err

    res 1716131108.03

    1716131108.03.ok

    2244-20140223.csv

    2244-20140223.csv.ok

    DailyTxnsReport RPT20140321.TXT

    9.3

    1. .up ( req )

    .up

    up

    2. .ok .err ( req )

    FTP .up

    :

  • URL

    82

    .ok

    .err

    ok err

    3. .ok ( res )

    .ok ok

    ok

    4. .ok ( res )

    FTP

    .ok ok

    ok

  • URL

    83

    10

    10.1 POS

    ()

    status1 (Payment Gateway DataBase Error)

    errcode 00 ()

    status2 (Payment Gateway Error)

    errcode

    #define PG_ERR_NO_MEMORY 1 ( P.G.)

    #define PG_ERR_FILE_OPEN 2 ( P.G.)

    #define PG_ERR_FILE_RW 3 ( P.G.)*

    #define PG_ERR_DB_CONN 4 ( P.G.)

    #define PG_ERR_SEND_MER 5 ( P.G. Cancel ) *

    #define PG_ERR_WORK_FAIL 6 (Reserved)

    #define PG_ERR_WORK_TIMEOUT 7 ( P.G.) *

    #define PG_ERR_BD_INIT 8 ( P.G.)

    #define PG_ERR_BD_RW 9 ( P.G.)

    #define PG_ERR_CREATE_THREAD 10 ( P.G.)

    #define PG_ERR_REPORT_FAIL 11 ( P.G.)

    #define PG_ERR_TIME_TOO_OLD 12 ( P.G. 1970)

    #define PG_ERR_CHDIR 13 (Reserved)

    #define PG_ERR_MKDIR 14 ( P.G. Log QID )

    #define PG_ERR_BUF_OVERFLOW 15 ( P.G. 2048 )

    #define PG_ERR_RPT_TIMEOUT 16 ( P.G. reconcile report )

    #define PG_ERR_SRV_INFO 20 ( P.G. DB Server )

    #define PG_ERR_SYS_PARA 21 ( P.G. HYWEBPGDIR )

    #define PG_ERR_SERVER_TYPE 22* ( P.G. Config )

    #define PG_ERR_SYS_SHUTDOWN 30* ( P.G.

    )

    #define PG_ERR_UPTO_MAX_THREAD_NO 40 ( P.G.

    )

    status3 (Payment Gateway Reject)

    errcode

    #define PG_REJ_TRANS_NOT_ALLOW 1 ( P.G.)

    #define PG_REJ_LACK_PREV_TRANS 2 ( P.G.)

    #define PG_REJ_VOID_PREV_TRANS 3 ( P.G. void

    )

  • URL

    84

    #define PG_REJ_BAD_SETTYPE 4 (P.G.CAT/EDC

    )

    #define PG_REJ_BAD_COMPSTATE 5 ( P.G.

    )

    #define PG_REJ_BAD_STATUS 6 ( P.G. approved )

    #define PG_REJ_INVALID_AMT 7 ( P.G.)

    #define PG_REJ_BAD_MERCID 8 (MerchantID )

    #define PG_REJ_BAD_TERMID 9 (TerminalID )

    #define PG_REJ_BAD_SERVERTYPE 10 ( P.G. SET/SSL

    )

    #define PG_REJ_BAD_EC_INDICATOR 11 (P.G.EC_INDICATOR

    )

    #define PG_REJ_BRAND_NOT_MATCH 12 ( BRAND )

    #define PG_REJ_BAD_RECURID 13 ( P.G.)

    #define PG_REJ_XID_DUP 14 ( P.G. XID)

    #define PG_REJ_XID_LOCKED 15 ( SSL XID )

    #define PG_REJ_XID_MISS_LOCK 16 ( P.G. Lock

    )

    #define PG_REJ_STATE_VOID 17 ( P.G. void )

    #define PG_REJ_DB_EXPIRE 18 (Reserved

    )

    #define PG_REJ_AUTH_EXPIRE 19 ( P.G.

    )

    #define PG_REJ_CREDIT_EXPIRE 20 ( P.G.

    )

    #define PG_REJ_ORG_AMT_NOT_MATCH 21 ()

    #define PG_REJ_PAN_NOT_MATCH 22 ()

    #define PG_REJ_EXPDATE_NOT_MATCH 23 ()

    #define PG_REJ_APPROVECODE_NOT_MATCH 24 ()

    #define PG_REJ_REF_ID_NOT_MATCH 25 ( P.G.)

    #define PG_REJ_PURCHDATA_NOT_MATCH 26 (Reserved)

    #define PG_REJ_NULL_TM_RESPCODE 27 ()

    #define PG_REJ_NULL_RESPCODE 28 ()

    #define PG_REJ_UNEXPECT_TM_RESPCODE 29 ()

    #define PG_REJ_UNEXPECT_RESPCODE 30 ()

    #define PG_REJ_TERM_LOCKED 31 ( P.G.

    )

    #define PG_REJ_TERM_UNKNOW 32 ( P.G. MerchantID

    TerminalID)

    #define PG_REJ_BATCH_UNKNOW 33 ( P.G.

    )

    #define PG_REJ_BATCH_INACTIVE 34 (BatchOpen)

    #define PG_REJ_TRACENO_FULL 35 ( P.G.

  • URL

    85

    )

    #define PG_REJ_BATCHNO_FULL 36 ( P.G.

    )

    #define PG_REJ_BATCH_IN_OPEN 37 ( P.G.

    )

    #define PG_REJ_BATCH_IN_CLOSE 38 ( P.G.

    )

    #define PG_REJ_BATCH_IN_SETTLE 39 (Reserved)

    #define PG_REJ_BATCH_STATUS 40 ( P.G.)

    #define PG_REJ_BATCH_OCCUPIED 41 ()

    #define PG_REJ_DUP_BATCH 42 ( P.G.

    )

    #define PG_REJ_NO_ACTIVE_BATCH 43 ()

    #define PG_REJ_NO_CVV2_CODE 44 ( CVV2 )

    #define PG_REJ_OVER_AUTH_AMT 45 ()

    #define PG_REJ_OVER_TOTAL_DEBIT_AMT 46 ()

    #define PG_REJ_OVER_TOTAL_CREDIT_AMT 47 ()

    #define PG_REJ_INVALID_RECUR_AMT 51 (

    )

    #define PG_REJ_BAD_PRODCODE 61 (productCode ())

    #define PG_REJ_ MERC_ATTRIBUTE_NOT_MATCH 62 ((

    ))

    #define PG_REJ_BATCH_CREDIT_GT_DEBIT 71 ()

    #define PG_REJ_CAP_CLEARING_NOT_CONFIRMED 72 ( Cap ,)

    #define PG_REJ_WAIT_LOCKED_TXN 48 ( P.G.

    P.G. Timeout )

    #define PG_REJ_DUPLICATE_CAP 52 ()

    #define PG_REJ_DUPLICATE_CREDIT 53 ()

    #define PG_REJ_DUPLICATE_AUTHREV 54 ()

    #define PG_REJ_DUPLICATE_CAPREV 55 ()

    #define PG_REJ_DUPLICATE_CREDREV 56 ()

    #define PG_REJ_MISS_trvMercid 73 (-)

    #define PG_REJ_MISS_trvDepartday 74 (-)

    #define PG_REJ_MISS_trvCommission 75 (-)

    #define PG_REJ_UNMATCHED_trvMercid 76 (-)

    #define PG_REJ_UNMATCHED_trvDepartday 77 (-)

    #define PG_REJ_INVALID_trvCommission 78 (-)

    #define PG_REJ_INCREASE_trvCommission 79 (-)

    #define PG_REJ_INVALID_trvDepartday 80 (-)

    #define PG_REJ_UNRELATED_trvMercid 81 (-)

    #define PG_REJ_CRED_CLEARING_NOT_CONFIRMED 70 (,)

    status4 (TM Error)

  • URL

    86

    errcode

    #define TM_ERR_RESPONSE_TIMEOUT 1 ( CardPool )

    #define TM_ERR_INVALID_SSLTYPE 2 ( P.G.)

    #define TM_ERR_TRANS_DATA 3 ( P.G.)

    #define TM_ERR_COMMUNICATION_FAIL 4 ( P.G.CardPool)

    #define TM_ERR_TRANS_NOT_ALLOW 5 ( CardPool )

    #define TM_ERR_BUFFER_FULL 6 ( P.G.)

    #define TM_ERR_CARD_NOT_ACCEPT 7 (,( 16

    ))

    #define TM_ERR_UPLOAD_ERROR 8 (Reserved CardPool

    )

    #define TM_ERR_CANCEL_NOT_ALLOW 9 ( P.G. Cancel )

    #define TM_ERR_CPS_NOT_RESPONSE 10 ( P.G. CardPool

    )*

    #define TM_ERR_RESTART 11 ( P.G.)*

    #define TM_ERR_OS_ERR 12 ( P.G )*

    #define TM_ERR_BANK_NOT_SUPPORT 13 ( P.G.)

    #define TM_ERR_QUEUE_TIMEOUT 14 ( P.G CardPool

    )

    #define TM_ERR_MSGTYPE_NOT_MATCH 30 (CardPool )

    #define TM_ERR_PROCCODE_NOT_MATCH 31 (CardPool )

    #define TM_ERR_AMT_NOT_MATCH 32 (CardPool )

    #define TM_ERR_TRACENO_NOT_MATCH 33 (CardPool )

    #define TM_ERR_NII_NOT_MATCH 34 (CardPool )

    #define TM_ERR_RESPCODE_NOT_MATCH 35 (CardPool )

    #define TM_ERR_TERMINAL_NOT_MATCH 36 (CardPool )

    #define TM_ERR_TIME_NOT_MATCH 37 (CardPool )

    #define TM_ERR_DATE_NOT_MATCH 38 (CardPool )

    #define TM_ERR_PAN_INFO_NOT_MATCH 39 (CardPool )

    #define TM_ERR_RETR_REF_NOT_MATCH 40 (CardPool )

    #define TM_ERR_MERCHANT_NOT_MATCH 41 (CardPool )

    #define TM_ERR_CURRENCY_NOT_MATCH 42 (CardPool )

    #define TM_ERR_PREFIX_NOT_MATCH 43 (CardPool )

    status8 (Bank Error) /

    errcode

    #define REFER TO CARD ISSUER 01 (

    )

    #define REFER TO CARD ISSUER 02 (

    )

    #define INVALID MERCHANT 03 ( Merchant ID)

    #define DECLINED 05 ()*

  • URL

    87

    #define RESERVED TO ISO USE 06 ()

    #define CAPTURE CARD 07 ()

    #define RESERVED TO ISO USE 08~11()

    #define INVALID TRANSACTION 12 ()

    #define INVALID AMOUNT 13 ()

    #define INVALID CARD NUMBER 14 ()

    #define INVALID ISSUER 15 ()

    #define RESERVED TO ISO USE 16~18()

    #define RE-ENTER TRANSACTION 19 ()

    #define INVALID RESPONSE 20 (Reserved)

    #define REDEEM_REVERSAL_EXPIRED 21 ()

    #define FORMAT ERROR 30 ()

    #define BANK NOT SUPPORTED 31 (Reserved, bank not supported by switch)

    #define COMPLETED PARTIALLY 32 (Reserved, completed partially)

    #define EXPIRED CARD 33 ()

    #define SUSPECTED FRAUD 34 (Reserved, suspected fraud )

    #define CALL HELP 35 (Reserved, card acceptor call acquirer security)

    #define RESTRICTED CARD 36 (Reserved, restricted card )

    #define CARD HELP 37 (Reserved, card acceptor call acquirer security)

    #define PIN TRY LOCK 38 (Reserved, allowable PIN tries exceeded )

    #define NO CREDIT ACCOUNT 39 ()

    #define REQUEST NOT SUPPORTED 40 (Reserved, requested function not supported)

    #define LOST CARD 41 ()

    #define NO UNIVERSAL ACCOUNT 42 (Reserved, no universal account)

    #define STOLEN CARD 43 ()

    #define NO INVESTMENT ACCOUNT 44 (Reserved, no investment account)

    #define RESERVED TO ISO USE 45~50()

    #define NO SUFFICIENT FUNDS 51 ()

    #define RESERVED TO ISO USE 52 (No chequing account)~53(No saving account)

    #define EXPIRED CARD 54 ()

    #define INCORRECT PIN 55 (Reserved, incorrect personal identification number)

    #define NO CARD RECORD 56 ()

    #define TRANS. NOT PERMITTED TO CARDHOLD 57 ()

    #define TRANS. NOT PERMITTED TO TERMINAL 58 ()

    #define SUSPECTED CARD 59 ()

    #define CALL HELP 60 (Reserved, card acceptor call acquirer)

    #define EXCCEEDS WITHDRAW 61 (Reserved, amount too high)

    #define RESTRICTED CARD 62 (Reserved, card have to check)

    #define CVC ERROR 63 (, security violation)*

    #define ORIGINAL AMOUNT INCORRECT 64 ()

    #define EXCCEEDS WITHDRAW 65 (Reserved, exceeds withdrawal frequency limit)

    #define CALL HELP 66 (Reserved, card acceptor call acquirers security

    department)

  • URL

    88

    #define HARD CAPTURE 67 (Reserved, requires that card be picked up at ATM)

    #define RESPONSE RECEIVED TOO LATE 68 (Reserved)

    #define RESERVED TO ISO USE 69~74()

    #define PIN TRIES EXCEES 75 (Reserved, pin try too many times)

    #define RESERVED TO ISO USE 76~88()

    #define INVALID TERMINAL 89 (Reserved, Terminal ID)

    #define SYSTEM NOT AVAILABLE 90 (Reserved, cutoff is in process, transaction can be

    sent again in a few miniutes)

    #define ISSUER INOPERATIVE 91 (Reserved, issuer or switch center is inoperative)

    #define NETWORK ROUTING ERROR 92 (Reserved, financial institution or intermediate net.

    facility cannot be found for routing)

    #define VIOLATION OF LAW 93 (Reserved, transaction cannot be completed)

    #define DUPLICATE TRANSMISSION 94 (Reserved)

    #define RECONCILE ERROR 95 (Reserved, batch upload started)

    #define SYSTEM MALFUNCTION 96 ()

    #define ACCOUNT PROBLEM T8 (Decline Code: Account problem)

    #define MOD 10 CHECK O6 (Decline Code: mod 10 check)

    #define UNABLE TO AUTHORIZE N0 (Decline Code: unable to authorize)

    #define CAPTURE 04 (Invalid capture code: capture)

    #define OVER DAILY LIMIT P1 (Referral Code: over daily limit)

    status9 (SSL HyPOS Server Error)

    errcode

    #define ST_MER_SERVER_BUSY nc* ()

    #define ST_MER_DB_NOT_MATCH nd ( HyPOS )

    #define ST_MER_EXISTING_ENTRY ne ()

    #define ST_MER_MISSING_ELEMENT ng* ()

    #define ST_MER_INTERNAL ni* ()

    #define ST_MER_INVALID_MESSAGE nm* ( API PG )

    #define ST_MER_RECV_TIMEOUT no ()

    #define ST_MER_RECV_PG_ERROR np ( P.G.

    )

    #define ST_MER_SEND_PG_ERROR nq ( P.G.)

    #define ST_MER_INVALID_RESP_FORMAT nr (POS PG RESP )

    #define ST_MER_SYSTEM_ERROR ns ()

    #define ST_MER_INVALID_FORMAT nt (POS )

    #define ST_MER_VERIFY_ERROR nv (Reserved)

    #define ST_MER_UNAUTHORIZE nz ()

    #define ST_MER_BATCH_CLOSED bc ( BatchClose '

    ')

    #define ST_MER_BATCH_OPENED bo ( BatchOpen '

  • URL

    89

    ')

    #define ST_MER_NONTRV_USELESS_ELEMENT nw ()

    #define ST_MER_MISSING_TRV_DEPART_DAY ta (-)

    #define ST_MER_INVALID_TRV_DEPART_DAY tb (-)

    #define ST_MER_MISSING_TRV_MERCHANT_ID tc (-)

    #define ST_MER_INVALID_TRV_MERCHANT_ID td (-)

    #define ST_MER_MISSING_TRV_COMMISSION te (-)

    #define ST_MER_INVALID_TRV_COMMISSION tf (-)

    #define ST_MER_EXPDATE_EXPIRED ed ()

    status10 (SSL EZPOS System Error)

    errcode

    #define SSL_CONFIG_FILE_ERROR 1 (HyPOSEZ Server )

    #define SSL_CONFIG_FILE_NOT_EXIST 2 (HyPOSEZ Server )

    #define SSL_MEMORY_ERROR 3 (HyPOSEZ Server )

    #define SSL_CONNECT_HYPOS_ERROR 4 (HyPOSEZ SSL HyPOS Server)

    #define SSL_MERCHANT_DB_DIR_WRITE_ERROR 5(Reserved)

    #define SSL_STOP 6 (Reserved)

    #define SSL_LOCK_ERROR 7 ( HyPOSEZ Server )

    #define SSL_LOCK_BUSY 8 (Reserved)

    #define SSL_UNKNOWN_ERROR 10 ()

    #define SSLEZ_NOT_MATCH_ERROR 11 (HyPOSEZ )

    #define SSLEZ_CONF_FILE_ERROR 12 (HyPOSEZ )

    #define SSLEZ_DBPATH_NOT_FOUND_ERROR 13 (Reserved)

    #define SSLEZ_DBFILE_NOT_FOUND_ERROR 14 (HyPOSEZ )

    #define SSLEZ_XIDFILE_ERROR 15 (HyPOSEZ XID )

    #define SSLEZ_UPDATEDB_SIGNAL_ERROR 16 (HyPOSEZ )

    #define SSLEZ_STOP 17 (HyPOSEZ )

    #define SSLAP_MERID_ERROR 18 (URL-Link )

    #define SSLAP_LIDM_ERROR 19 (URL-Link )

    #define SSLAP_PURCHAMT_ERROR 20 (URL-Link )

    #define SSLAP_AMTEXP_ERROR 21 (URL-Link )

    #define SSLAP_EXPDATE_ERROR 22 ()

    #define SSLAP_PAN_ERROR 23 ()

    #define SSLAP_CURRENCY_ERROR 24 (URL-Link )

    #define SSLAP_INIFILE_ERROR 25 (HyPOSEZ Internal Error)

    #define SSLAP_XID_ERROR 26 (HyPOSEZ Internal ErrorXID )

    #define SSLAP_AUTHRRPID_ERROR 27 (HyPOSEZ Internal ErrorAUTHRRPID

    )

    #define SSLAP_CREDRRPID_ERROR 28 (HyPOSEZ Internal ErrorCREDRRPID

    )

    #define SSLAP_BATCHID_ERROR 29 (HyPOSEZ Internal Error)

  • URL

    90

    #define SSLAP_UPDATEDB_SIGNAL_ERROR 30 (HyPOSEZS )

    #define SSLAP_CONNECT_TIMEOUT_ERROR 31 (HyPOSEZ SSL HyPOS Server )

    #define SSLAP_LOGIN_ERROR 32 ()

    #define SSLAP_CARD_INVAILD 69 ()

    #define SSLAP_CARD_FORMAT_ERROR 70 ()

    #define SSLAP_CARD_NO_ERROR 71 ()

    #define SSLAP_3D_CONNECT_TIMEOUT 72 ( 3D Server )

    #define SSLAP_PANTX_EXCEEDED 77 ()

    #define SSLAP_URL_PARAMETER_ERROR 80 (URL )

    #define SSLAP_URL_USER_CANCEL 88 ()

    #define SSLAP_TXTYPE_NOTMATCH 95 ( txType )

    #define SSLAP_MAC_NOTMATCH 96 ()

    #define SSLAP_MAC_KEY_INVALID 97 ( Key )

    #define SSLAP_GENMAC_ERROR 98 ()

    #define SSLAP_VALIDATECODE_NOTMATCH 99 ( POS URL

    )

    #define SSLAP_CUSTPAGE_NOTEXIST 100 ()

    #define SSLAP_MERCHANT_NOTEXIST 101 ()

    #define SSLAP_MERID_NOT_MATCH 102 (merID )

    #define SSLAP_DB_CONNECT_ERROR 105 ()

    status12 (3D Secure Error / Risk Constraint Error)

    errcode

    #define 3DSECURE_CAVVCHK_ERROR 11 ( CardPool 3D )

    #define 3DSECURE_OVER_AUTHAMT 21 ( P.G.)

    #define 3DSECURE_OVER_AUTHNUM 22 ( P.G.)

    #define 3DSECURE_OVER_SGL_AUTHAMT 23 ( P.G.)

    #define 3DSECURE_INACTIVE 24 ( P.G.)

    #define 3DSECURE_INVALID_CARDRANGE 25 ( P.G.)

    #define 3DSECURE_IN_PANBLACKLIST 26 ( P.G.)

    #define 3DSECURE_NO_MERDATA 27 ( P.G.)

    #define 3DSECURE_INVALID_ATTRIBUTE 28 ( P.G.)

    #define 3DSECURE_PROCESS_ERROR 40 (3D )

    #define 3DSECURE_DENIAL 41 ( 3D )

    #define 3DSECURE_NONPARTICIPATING_PAN 42( 3D )

    #define 3DSECURE_ENROLLEDCHK_PAN 43 ( 3D )

    #define 3DSECURE_PARES_NONE 44 ( 3D )

    #define 3DSECURE_PARES_UNKNOWN 45 ( 3D )

    #define VISA_3DSECURE_OVER_PAN_AUTHAMT 46 ()

    #define VISA_3DSECURE_OVER_MONTH_AUTHAMT 47 ()

  • URL

    91

    #define VISA_3DSECURE_OVER_PAN_TXNCNT_IN_DURATION 48 (

    )

    #define VISA_3DSECURE_ATTRIBUTE_NOT_ALLOW 29 ( PG )

    #define VISA_3DSECURE_INVALID_CARDRANGE 25 ( P.G.

    )

  • URL

    92

    10.2

    (HEX)

    (DEC)

    HY_R_MAC_MERCHANTID 0x11000001 285212673

    HY_R_MAC_TERMINALID 0x11000002 285212674

    HY_R_MAC_LIDM 0x11000003 285212675

    HY_R_MAC_PURCHAMT 0x11000004 285212676

    HY_R_MAC_TXTYPE 0x11000005 285212677

    HY_R_MAC_CAVV 0x11000006 285212678 CAVV

    HY_R_MAC_OPTION 0x11000007 285212679

    HY_R_MAC_STATUS 0x11000008 285212680

    HY_R_MAC_ERRCODE 0x11000009 285212681

    HY_R_MAC_AUTHCODE 0x1100000a 285212682

    HY_R_MAC_AUTHAMT 0x1100000b 285212683

    HY_R_MAC_OFFSETAMT 0x1100000c 285212684

    HY_R_MAC_ORIGINALAMT 0x1100000d 285212685

    HY_R_MAC_UTILIZEDPOINT 0x1100000e 285212686

    HY_R_MAC_LAST4DIGITPAN 0x1100000f 285212687

    HY_R_MAC_ACQUIREBIN 0x11000010 285212688 AcquirerBIN

    HY_R_MAC_CARDNUMBER 0x11000011 285212689

    HY_R_MAC_EXPYEAR 0x11000012 285212690

    HY_R_MAC_EXPMONTH 0x11000013 285212691

    HY_R_MAC_TOTALAMOUNT 0x11000014 285212692

    HY_R_MAC_XID 0x11000015 285212693

    HY_R_MAC_EXPIRY 0x11000016 285212694

    HY_R_MAC_ECI 0x11000017 285212695 Eci

    HY_R_MAC_ERRORCODE 0x11000018 285212696 ErrorCode

    HY_R_MAC_KEY 0x11000019 285212697 Key

    HY_R_MAC_DES 0x1100001a 285212698

    HY_R_MAC_DESKEY 0x1100001b 285212699 KEY

    HY_R_MAC_OUTPUT 0x1100001c 285212700 MAC

    HY_R_MAC_ERR_CIPHERTEXT 0x1100001d 285212701