Changeset 17307


Ignore:
Timestamp:
2008/05/13 14:24:05 (14 years ago)
Author:
adachi
Message:

与信金額の不具合修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-1/data/downloads/module/mdl_cybs/mdl_cybs_credit.php

    r17244 r17307  
    4949 
    5050$objCybs =& Mdl_Cybs_Config::getInstanse(); 
    51 $objPage->enable_ondemand = $objCybs->enableOndemand(); //¥ª¥ó¥Ç¥Þ¥ó¥É²Ý¶â¤Î»ÈÍѲÄÈÝ 
     51$objPage->enable_ondemand = $objCybs->enableOndemand(); // ¥ª¥ó¥Ç¥Þ¥ó¥É²Ý¶â¤Î»ÈÍѲÄÈÝ 
     52$objPage->can_add_subsid  = $objCybs->canAddSubsId();   // ¥«¡¼¥ÉÅÐÏ¿¿ô¾å¸Â¤ÎȽÄê 
     53 
    5254$objPage->tpl_payment_method = '¥µ¥¤¥Ð¡¼¥½¡¼¥¹·èºÑ'; 
    5355 
     
    107109 
    108110    // 3D¥»¥­¥å¥¢»ÈÍÑÀßÄêȽÄê 
    109     if ($objCybs->use3D() && !$objCybs->enableOndemand()) { 
     111    if ($objCybs->use3D() && lfIs3DCard($objForm->getValue('card_company'))) { 
    110112        // 3D¥»¥­¥å¥¢¥ê¥¯¥¨¥¹¥È¤òÁ÷¿®¤¹¤ë 
    111113        $arrResults = sfCybsSendRequest(lfCreateEnrollParam($objForm->getHashArray(), $arrData)); 
     
    458460        'pa_http_user_agent'  => $_SERVER['HTTP_USER_AGENT'], 
    459461        'pa_merchant_country_code' => 'JP', 
    460         //'pa_merchant_id'      => $arrConfig['cybs_merchant_id'], // ¥µ¥¤¥Ð¡¼¥½¡¼¥¹¤Î¥Þ¡¼¥Á¥ã¥ó¥ÈID¤È¤ÏÊÌ 
     462        //'pa_merchant_id'      => $arrConfig['cybs_merchant_id'], 
    461463        'pa_merchant_name'    => lfToSjis($arrInfo['shop_name']), 
    462464        'pa_merchant_url'     => SSL_URL, 
    463         'offer0'              => "amount:" . $arrData['payment_total'] 
    464465    ); 
     466 
     467    $arrSendParam["offer0"] = "amount:" . $arrData['payment_total']; 
     468 
    465469    return $arrSendParam; 
    466470} 
     
    492496        "merchant_ref_number" => $arrData['order_id'], 
    493497        'pa_signedpares'      => trim($arrForm['PaRes']), 
    494         'offer0'              => "amount:" . $arrData['payment_total'] 
    495498    ); 
     499 
     500    $arrSendParam["offer0"] = "amount:" . $arrData['payment_total']; 
    496501 
    497502    $arrSendParam = lfCreateAuthParam($arrCardData, $arrData, $arrSendParam); 
     
    584589    $objQuery->update("dtb_order_temp", $sqlval, "order_temp_id = ?", array($uniqid)); 
    585590} 
     591 
     592/** 
     593 * 3DÂбþ¥«¡¼¥É¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë 
     594 * 
     595 * @param¥«¡¼¥É¼ïÊÌ $cardtype 
     596 * @return boolean 
     597 */ 
     598function lfIs3DCard($cardtype) { 
     599    $arrCardType = array('001', '002', '007'); 
     600    if (in_array($cardtype, $arrCardType)) { 
     601        return true; 
     602    } 
     603    return false; 
     604} 
    586605?> 
Note: See TracChangeset for help on using the changeset viewer.