'一括払い', ); define("ZERO_PC", 1); // dtb_payment の区分用 define("ZERO_MOBILE", 2); // dtb_payment の区分用 define("ZERO_CREDIT_ID", 1); // dtb_payment の区分用 // 送信パラメータ define ("SEND_PARAM_CUSTOM", "yes"); define ("SEND_PARAM_ACT", "imode"); define ("SEND_PARAM_SEND", "jpall"); define ("SEND_PARAM_PC_URL", "https://credit.zeroweb.ne.jp/cgi-bin/order.cgi?orders"); define ("SEND_PARAM_MOBILE_URL", "https://credit.zeroweb.ne.jp/cgi-bin/order.cgi"); define ("SEND_PARAM_DELIMITER", "_"); // sendidの分割文字 // 文字数制限 define ("CLIENTIP_LEN", 5); define ("SEND_LEN", 20); /************************************************************************************************************** * 関数名 :sfPostPaymentData * 処理内容 :決済データ送信処理 * 引数1 : * 引数2 : * 引数3 : * 戻り値 :取得結果 **************************************************************************************************************/ function sfPostPaymentData($arrData, $arrInput){ $arrPost = array( 'clientip' => '94181', 'cardnumber' => $arrInput['card_no01'].$arrInput['card_no02'].$arrInput['card_no03'].$arrInput['card_no04'], 'expyy' => $arrInput['card_year'], 'expmm' => $arrInput['card_month'], 'telno' => $arrData['order_tel01'].$arrData['order_tel02'].$arrData['order_tel03'], 'email' => $arrData['order_mail'], 'sendid' => $arrData['order_id'], 'username' => $arrInput['card_name01'].$arrInput['card_name02'], 'money' => $arrData['total'], 'sendpoint' => 'eccube', 'send' => 'mall', 'pubsec' => '' ); sfPrintR($arrPost); $req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/secure.cgi'); $req->setMethod(HTTP_REQUEST_METHOD_POST); $req->addPostDataArray($arrPost); if (!PEAR::isError($req->sendRequest())) { $response = $req->getResponseBody(); $response = mb_convert_encoding($response, "EUC-JP", "Shift-JIS"); } $req->clearPostData(); if(ereg('Success_order', $response)) { print('成功'); } else { print('失敗'); } return $arrVal; } /************************************************************************************************************** * 関数名 :sfZeusDisp * 処理内容 :共通の表示処理 * 引数1 : * 引数2 : * 引数3 : * 戻り値 :取得結果 **************************************************************************************************************/ function sfZeusDisp($objPage, $payment_id) { $objQuery = new SC_Query(); // 支払い方法の説明画像を取得する。 $arrRet = $objQuery->select("payment_method, payment_image", "dtb_payment", "payment_id = ?", array($payment_id)); $objPage->tpl_payment_method = $arrRet[0]['payment_method']; $objPage->tpl_payment_image = $arrRet[0]['payment_image']; return $objPage; } ?>