Ignore:
Timestamp:
2007/08/11 14:08:19 (14 years ago)
Author:
naka
Message:
 
Location:
branches/feature-module-paygent/data/downloads/module/mdl_paygent
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-paygent/data/downloads/module/mdl_paygent/mdl_paygent.inc

    r15265 r15283  
    4848define("PAYGENT_CREDIT", '020'); 
    4949// ¥Ð¥Ã¥Á¤Ç»ÈÍѤ¹¤ë¡£ 
    50 define("PAYGENT_REF", '090');    
    51  
    52 // »Ùʧ¤¤ÊýË¡¤Î̾Á° 
    53 define("MDL_PAYGENT_CREDIT_NAME", "PAYGENT¥¯¥ì¥¸¥Ã¥È·èºÑ"); 
    54 define("MDL_PAYGENT_CONVENI_NAME", "PAYGENT¥³¥ó¥Ó¥Ë·èºÑ"); 
     50define("PAYGENT_REF", '090'); 
     51 
     52// ¼õÃí»þ¤Î½é´ü¥¹¥Æ¡¼¥¿¥¹ 
     53$arrInitStatus = array( 
     54    PAYGENT_CREDIT => ORDER_NEW,        // ¥¯¥ì¥¸¥Ã¥È¤Ï¿·µ¬¼õÉÕ 
     55    PAYGENT_ATM => ORDER_PAY_WAIT,      // ATM·èºÑ¤ÏÆþ¶âÂÔ¤Á 
     56    PAYGENT_CONVENI => ORDER_PAY_WAIT,  // ¥³¥ó¥Ó¥Ë¤ÏÆþ¶âÂÔ¤Á 
     57    PAYGENT_BANK => ORDER_NEW,          // ¶ä¹Ô¤Ï¿·µ¬¼õÉÕ 
     58); 
    5559 
    5660define ("CHARGE_MAX", 500000); 
     
    378382function sfPaygentResponse($telegram_kind, $objPaygent, $uniqid) { 
    379383    global $arrConvenience; 
     384    global $arrInitStatus; 
    380385     
    381386    // ½èÍý·ë²Ì¼èÆÀ¡Ê¶¦ÄÌ¡Ë 
     
    398403    // ¥¯¥ì¥¸¥Ã¥È·èºÑ¤Î¾ì¹ç 
    399404    case PAYGENT_CREDIT: 
    400         // ¥¹¥Æ¡¼¥¿¥¹¤ò¿·µ¬¼õÉդˤ¹¤ë¡£ 
    401         $arrVal["status"] = ORDER_NEW; 
     405        // ½é´ü¥¹¥Æ¡¼¥¿¥¹¤òÀßÄꤹ¤ë¡£ 
     406        $arrVal["status"] = $arrInitStatus[PAYGENT_CREDIT]; 
    402407        // ¶õ¤ÎÇÛÎó¤ò³ÊǼ¤·¤Æ¤ª¤¯ 
    403408        $arrVal["memo02"] = serialize(array());      
     
    427432        // ¼õÃí¥Æ¡¼¥Ö¥ë¤ËÊݸ 
    428433        $arrVal["memo02"] = serialize($arrMemo); 
    429         // ¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âÂÔ¤Á¤Ë¤¹¤ë¡£ 
    430         $arrVal["status"] = ORDER_PAY_WAIT;      
     434        // ½é´ü¥¹¥Æ¡¼¥¿¥¹¤òÀßÄꤹ¤ë¡£ 
     435        $arrVal["status"] = $arrInitStatus[PAYGENT_CONVENI];         
    431436        break; 
    432437    // ATM·èºÑ¤Î¾ì¹ç 
     
    441446        // ¼õÃí¥Æ¡¼¥Ö¥ë¤ËÊݸ 
    442447        $arrVal["memo02"] = serialize($arrMemo); 
    443         // ¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âÂÔ¤Á¤Ë¤¹¤ë¡£ 
    444         $arrVal["status"] = ORDER_PAY_WAIT;      
     448        // ½é´ü¥¹¥Æ¡¼¥¿¥¹¤òÀßÄꤹ¤ë¡£ 
     449        $arrVal["status"] = $arrInitStatus[PAYGENT_ATM];         
    445450        break; 
    446451    // ¶ä¹Ô¥Í¥Ã¥È¤Î¾ì¹ç 
    447452    case PAYGENT_BANK: 
    448         // ¥¹¥Æ¡¼¥¿¥¹¤ò¿·µ¬¼õÉդˤ¹¤ë¡£ 
    449         $arrVal["status"] = ORDER_NEW; 
     453        // ½é´ü¥¹¥Æ¡¼¥¿¥¹¤òÀßÄꤹ¤ë¡£ 
     454        $arrVal["status"] = $arrInitStatus[PAYGENT_BANK]; 
    450455        // ¶õ¤ÎÇÛÎó¤ò³ÊǼ¤·¤Æ¤ª¤¯ 
    451456        $arrVal["memo02"] = serialize(array()); 
  • branches/feature-module-paygent/data/downloads/module/mdl_paygent/mdl_paygent.php

    r15265 r15283  
    106106    $objFormParam->addParam("»Ùʧ´ü¸ÂÆü", "conveni_limit_date", 2, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), $arrDefault['conveni_limit_date']); 
    107107    $objFormParam->addParam("»Ùʧ´ü¸ÂÆü", "atm_limit_date", 2, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), $arrDefault['atm_limit_date']); 
    108     $objFormParam->addParam("ɽ¼¨Å¹ÊÞ̾(¥«¥Ê)", "payment_detail", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK", "KANA_CHECK"), $arrDefault['payment_detail']); 
     108    $objFormParam->addParam("ɽ¼¨Å¹ÊÞ̾(¥«¥Ê)", "payment_detail", 12, "KVa", array("MAX_LENGTH_CHECK", "KANA_CHECK"), $arrDefault['payment_detail']); 
    109109    $objFormParam->addParam("»Ùʧ´ü¸ÂÆü", "asp_payment_term", 2, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), $arrDefault['asp_payment_term']); 
    110     $objFormParam->addParam("ɽ¼¨Å¹ÊÞ̾(Á´³Ñ)", "claim_kanji", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"), $arrDefault['claim_kanji']); 
    111     $objFormParam->addParam("ɽ¼¨Å¹ÊÞ̾(¥«¥Ê)", "claim_kana", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK", "KANA_CHECK"), $arrDefault['claim_kana']); 
     110    $objFormParam->addParam("ɽ¼¨Å¹ÊÞ̾(Á´³Ñ)", "claim_kanji", 12, "KVa", array("MAX_LENGTH_CHECK"), $arrDefault['claim_kanji']); 
     111    $objFormParam->addParam("ɽ¼¨Å¹ÊÞ̾(¥«¥Ê)", "claim_kana", 12, "KVa", array("MAX_LENGTH_CHECK", "KANA_CHECK"), $arrDefault['claim_kana']); 
    112112    $objFormParam->addParam("ÍøÍÑ·èºÑ", "payment", "", "", array("EXIST_CHECK")); 
    113     $objFormParam->addParam("·èºÑ¥Ú¡¼¥¸ÍÑ¥³¥Ô¡¼¥é¥¤¥È(Ⱦ³Ñ±Ñ¿ô)", "copy_right", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK","NO_SPTAB")); 
    114     $objFormParam->addParam("·èºÑ¥Ú¡¼¥¸ÍÑÀâÌÀʸ(Á´³Ñ)", "free_memo", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));   
     113    $objFormParam->addParam("·èºÑ¥Ú¡¼¥¸ÍÑ¥³¥Ô¡¼¥é¥¤¥È(Ⱦ³Ñ±Ñ¿ô)", "copy_right", 64, "KVa", array("MAX_LENGTH_CHECK")); 
     114    $objFormParam->addParam("·èºÑ¥Ú¡¼¥¸ÍÑÀâÌÀʸ(Á´³Ñ)", "free_memo", 128, "KVa", array("MAX_LENGTH_CHECK"));     
    115115    return $objFormParam; 
    116116} 
  • branches/feature-module-paygent/data/downloads/module/mdl_paygent/paygent_batch.php

    r15197 r15283  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7 require_once(MODULE_PATH . "mdl_paygent/mdl_paygent.inc"); 
     7$PAYGENT_BATCH_DIR = realpath(dirname( __FILE__)); 
     8require_once($PAYGENT_BATCH_DIR . "mdl_paygent.inc"); 
    89 
    910sfPaygentBatch(); 
Note: See TracChangeset for help on using the changeset viewer.