| 1 |
<?php |
| 2 |
if(isset($this)) |
| 3 |
$usces = &$this; |
| 4 |
|
| 5 |
$payments = usces_get_payments_by_name($usces_entries['order']['payment_name']); |
| 6 |
$acting_flag = ''; |
| 7 |
$rand = sprintf('%010d', mt_rand(1, 9999999999)); |
| 8 |
$cart = $usces->cart->get_cart(); |
| 9 |
|
| 10 |
//20120914ysk start 0000566 |
| 11 |
$purchase_disabled = ( '' != $usces->error_message ) ? ' disabled="true"' : ''; |
| 12 |
//20120914ysk end |
| 13 |
if( 'acting' != substr($payments['settlement'], 0, 6) || 0 == $usces_entries['order']['total_full_price'] ){ |
| 14 |
$html .= '<form id="purchase_form" action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 15 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.apply_filters('usces_filter_confirm_prebutton_value', __('Back to payment method page.', 'usces')).'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /> |
| 16 |
<input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', NULL) . $purchase_disabled . ' /></div>'; |
| 17 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 18 |
$html .= '</form>'; |
| 19 |
}else{ |
| 20 |
$send_item_code = apply_filters('usces_filter_settlement_item_code', $usces->getItemCode($cart[0]['post_id'])); |
| 21 |
$send_item_name = apply_filters('usces_filter_settlement_item_name', $usces->getItemName($cart[0]['post_id'])); |
| 22 |
|
| 23 |
$scheme = ( $usces->use_ssl ) ? 'https://' : 'http://'; |
| 24 |
|
| 25 |
$acting_flag = ( 'acting' == $payments['settlement'] ) ? $payments['module'] : $payments['settlement']; |
| 26 |
switch( $acting_flag ){ |
| 27 |
|
| 28 |
case 'paypal.php': |
| 29 |
require_once($usces->options['settlement_path'] . "paypal.php"); |
| 30 |
//20110208ysk start |
| 31 |
$lc = ( isset($usces->options['system']['currency']) && !empty($usces->options['system']['currency']) ) ? $usces->options['system']['currency'] : ''; |
| 32 |
$currency_code = $usces->get_currency_code(); |
| 33 |
global $usces_settings; |
| 34 |
$country_num = $usces_settings['country_num'][$lc]; |
| 35 |
$tel = ltrim(str_replace('-', '', $usces_entries['customer']['tel']), '0'); |
| 36 |
$html .= '<form id="purchase_form" action="https://' . $usces_paypal_url . '/cgi-bin/webscr" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 37 |
<input type="hidden" name="cmd" value="_xclick"> |
| 38 |
<input type="hidden" name="business" value="' . $usces_paypal_business . '"> |
| 39 |
<input type="hidden" name="custom" value="' . $usces->get_uscesid(false) . '"> |
| 40 |
<input type="hidden" name="lc" value="'.$lc.'"> |
| 41 |
<input type="hidden" name="charset" value="UTF-8"> |
| 42 |
<input type="hidden" name="first_name" value="'.esc_html($usces_entries['customer']['name2']).'"> |
| 43 |
<input type="hidden" name="last_name" value="'.esc_html($usces_entries['customer']['name1']).'"> |
| 44 |
<input type="hidden" name="address1" value="'.esc_html($usces_entries['customer']['address2']).'"> |
| 45 |
<input type="hidden" name="address2" value="'.esc_html($usces_entries['customer']['address3']).'"> |
| 46 |
<input type="hidden" name="city" value="'.esc_html($usces_entries['customer']['address1']).'"> |
| 47 |
<input type="hidden" name="state" value="'.esc_html($usces_entries['customer']['pref']).'"> |
| 48 |
<input type="hidden" name="zip" value="'.esc_html($usces_entries['customer']['zipcode']).'"> |
| 49 |
<input type="hidden" name="night_phone_a" value="'.$country_num.'"> |
| 50 |
<input type="hidden" name="night_phone_b" value="'.$tel.'"> |
| 51 |
<input type="hidden" name="night_phone_c" value="">'; |
| 52 |
//20110208ysk end |
| 53 |
if( 1 < count($cart) ) { |
| 54 |
$html .= '<input type="hidden" name="item_name" value="' . esc_attr($send_item_name) . ' ' . __('Others', 'usces') . '">'; |
| 55 |
}else{ |
| 56 |
$html .= '<input type="hidden" name="item_name" value="' . esc_attr($send_item_name) . '">'; |
| 57 |
} |
| 58 |
$html .= '<input type="hidden" name="item_number" value=""> |
| 59 |
<input type="hidden" name="amount" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '">'; |
| 60 |
//20110208ysk start |
| 61 |
//if( USCES_JP ){ |
| 62 |
//$html .= '<input type="hidden" name="currency_code" value="JPY">'; |
| 63 |
$html .= '<input type="hidden" name="currency_code" value="'.$currency_code.'">'; |
| 64 |
//} |
| 65 |
$html .= '<input type="hidden" name="no_note" value="1">'; |
| 66 |
//20110208ysk end |
| 67 |
$html .= '<input type="hidden" name="return" value="' . apply_filters('usces_paypal_return_url', (USCES_CART_URL . $usces->delim . 'acting=paypal&acting_return=1') ) . '"> |
| 68 |
<input type="hidden" name="cancel_return" value="' . USCES_CART_URL . $usces->delim . 'confirm=1"> |
| 69 |
<input type="hidden" name="notify_url" value="' . USCES_PAYPAL_NOTIFY_URL . '"> |
| 70 |
<input type="hidden" name="button_subtype" value="products"> |
| 71 |
<input type="hidden" name="tax_rate" value="0.000"> |
| 72 |
<input type="hidden" name="shipping" value="0"> |
| 73 |
<input type="hidden" name="bn" value="uscons_cart_WPS_JP"> |
| 74 |
<div class="send"><input type="image" src="https://www.paypal.com/' . ( USCES_JP ? 'ja_JP/JP' : 'en_US' ) . '/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal"' . apply_filters('usces_filter_confirm_nextbutton', NULL) . $purchase_disabled . ' /> |
| 75 |
<img alt="" border="0" src="https://www.paypal.com/' . ( USCES_JP ? 'ja_JP' : 'en_US' ) . '/i/scr/pixel.gif" width="1" height="1"></div>'; |
| 76 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 77 |
$html .= '</form>'; |
| 78 |
$html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 79 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /></div>'; |
| 80 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 81 |
$html .= '</form>'; |
| 82 |
break; |
| 83 |
|
| 84 |
case 'epsilon.php': |
| 85 |
$member = $usces->get_member(); |
| 86 |
$memid = empty($member['ID']) ? 99999999 : $member['ID']; |
| 87 |
$html .= '<form id="purchase_form" action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 88 |
<input type="hidden" name="user_id" value="' . $memid . '"> |
| 89 |
<input type="hidden" name="user_name" value="' . esc_attr($usces_entries['customer']['name1'] . ' ' . $usces_entries['customer']['name2']) . '"> |
| 90 |
<input type="hidden" name="user_mail_add" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '">'; |
| 91 |
if( 1 < count($cart) ) { |
| 92 |
$html .= '<input type="hidden" name="item_code" value="99999999"> |
| 93 |
<input type="hidden" name="item_name" value="' . esc_attr(mb_substr($send_item_name, 0, 25, 'UTF-8')) . ' ' . __('Others', 'usces') . '">'; |
| 94 |
}else{ |
| 95 |
$html .= '<input type="hidden" name="item_code" value="' . esc_attr($send_item_code) . '"> |
| 96 |
<input type="hidden" name="item_name" value="' . esc_attr(mb_substr($send_item_name, 0, 32, 'UTF-8')) . '">'; |
| 97 |
} |
| 98 |
$html .= '<input type="hidden" name="item_price" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '"> |
| 99 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /> |
| 100 |
<input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', NULL) . $purchase_disabled . ' /></div>'; |
| 101 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 102 |
$html .= '</form>'; |
| 103 |
break; |
| 104 |
|
| 105 |
case 'acting_zeus_card': |
| 106 |
$acting_opts = $usces->options['acting_settings']['zeus']; |
| 107 |
$usces->save_order_acting_data($rand); |
| 108 |
$html .= '<form id="purchase_form" action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">'; |
| 109 |
$member = $usces->get_member(); |
| 110 |
$pcid = $usces->get_member_meta_value('zeus_pcid', $member['ID']); |
| 111 |
$securecode = isset($_POST['securecode']) ? $_POST['securecode'] : ''; |
| 112 |
if( 2 == $acting_opts['security'] && 'on' == $acting_opts['quickcharge'] && $pcid == '8888888888888888' && $usces->is_member_logged_in() ){ |
| 113 |
$html .= '<input type="hidden" name="cardnumber" value="8888888888888888">'; |
| 114 |
//$html .= '<input type="hidden" name="securecode" value="' . esc_attr($_POST['securecode']) . '">';//20121119ysk 0000620 |
| 115 |
$html .= '<input type="hidden" name="securecode" value="' . esc_attr($securecode) . '">'; |
| 116 |
$html .= '<input type="hidden" name="expyy" value="' . esc_attr($_POST['expyy']) . '"> |
| 117 |
<input type="hidden" name="expmm" value="' . esc_attr($_POST['expmm']) . '">'; |
| 118 |
}else{ |
| 119 |
$html .= '<input type="hidden" name="cardnumber" value="' . esc_attr($_POST['cnum1']) . '">'; |
| 120 |
if( 1 == $acting_opts['security'] ){ |
| 121 |
$html .= '<input type="hidden" name="securecode" value="' . esc_attr($securecode) . '">'; |
| 122 |
} |
| 123 |
$html .= '<input type="hidden" name="expyy" value="' . esc_attr($_POST['expyy']) . '"> |
| 124 |
<input type="hidden" name="expmm" value="' . esc_attr($_POST['expmm']) . '">'; |
| 125 |
} |
| 126 |
$html .= '<input type="hidden" name="telno" value="' . esc_attr(str_replace('-', '', $usces_entries['customer']['tel'])) . '"> |
| 127 |
<input type="hidden" name="email" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '"> |
| 128 |
<input type="hidden" name="sendid" value="' . $member['ID'] . '"> |
| 129 |
<input type="hidden" name="username" value="' . esc_attr($_POST['username']) . '"> |
| 130 |
<input type="hidden" name="money" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '"> |
| 131 |
<input type="hidden" name="sendpoint" value="' . $rand . '"> |
| 132 |
<input type="hidden" name="printord" value="yes">'; |
| 133 |
if( isset($_POST['cbrand']) && isset($_POST['howpay']) && WCUtils::is_zero($_POST['howpay']) ){ |
| 134 |
$html .= '<input type="hidden" name="howpay" value="' . $_POST['howpay'] . '">'; |
| 135 |
$html .= '<input type="hidden" name="cbrand" value="' . $_POST['cbrand'] . '">'; |
| 136 |
$div_name = 'div_' . $_POST['cbrand']; |
| 137 |
$html .= '<input type="hidden" name="div" value="' . $_POST[$div_name] . '">'; |
| 138 |
$html .= '<input type="hidden" name="div_1" value="' . $_POST['div_1'] . '">'; |
| 139 |
$html .= '<input type="hidden" name="div_2" value="' . $_POST['div_2'] . '">'; |
| 140 |
$html .= '<input type="hidden" name="div_3" value="' . $_POST['div_3'] . '">'; |
| 141 |
} |
| 142 |
$html .= ' |
| 143 |
<input type="hidden" name="cnum1" value="' . esc_html($_POST['cnum1']) . '"> |
| 144 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /> |
| 145 |
<input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', NULL) . $purchase_disabled . ' /></div>'; |
| 146 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 147 |
$html .= '</form>'; |
| 148 |
break; |
| 149 |
|
| 150 |
case 'acting_zeus_conv': |
| 151 |
$member = $usces->get_member(); |
| 152 |
$acting_opts = $usces->options['acting_settings']['zeus']; |
| 153 |
$usces->save_order_acting_data($rand); |
| 154 |
$html .= '<form id="purchase_form" action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">'; |
| 155 |
$html .= ' |
| 156 |
<input type="hidden" name="act" value="secure_order"> |
| 157 |
<input type="hidden" name="money" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '"> |
| 158 |
<input type="hidden" name="username" value="' . esc_attr(trim($usces_entries['customer']['name3']) . trim($usces_entries['customer']['name4'])) . '"> |
| 159 |
<input type="hidden" name="telno" value="' . esc_attr(str_replace('-', '', $usces_entries['customer']['tel'])) . '"> |
| 160 |
<input type="hidden" name="email" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '"> |
| 161 |
<input type="hidden" name="pay_cvs" value="' . $_POST['pay_cvs'] . '"> |
| 162 |
<input type="hidden" name="sendid" value="' . $member['ID'] . '"> |
| 163 |
<input type="hidden" name="sendpoint" value="' . $rand . '">'; |
| 164 |
if( '' != $acting_opts['testid_conv'] ){ |
| 165 |
$html .= '<input type="hidden" name="testid" value="' . $acting_opts['testid_conv'] . '">'; |
| 166 |
$html .= '<input type="hidden" name="test_type" value="' . $acting_opts['test_type_conv'] . '">'; |
| 167 |
} |
| 168 |
$html .= ' |
| 169 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /> |
| 170 |
<input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', NULL) . $purchase_disabled . ' /></div>'; |
| 171 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 172 |
$html .= '</form>'; |
| 173 |
break; |
| 174 |
|
| 175 |
case 'acting_zeus_bank': |
| 176 |
$member = $usces->get_member(); |
| 177 |
$acting_opts = $usces->options['acting_settings']['zeus']; |
| 178 |
$usces->save_order_acting_data($rand); |
| 179 |
$html .= '<form id="purchase_form" action="' . $acting_opts['bank_url'] . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS">'; |
| 180 |
$html .= ' |
| 181 |
<input type="hidden" name="clientip" value="' . esc_attr($acting_opts['clientip_bank']) . '"> |
| 182 |
<input type="hidden" name="act" value="order"> |
| 183 |
<input type="hidden" name="money" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '">'; |
| 184 |
if( '' != $acting_opts['testid_bank'] ){ |
| 185 |
$html .= '<input type="hidden" name="username" value="' . esc_attr(trim($usces_entries['customer']['name3']) . trim($usces_entries['customer']['name4']) . '_' . $acting_opts['testid_bank']) . '">'; |
| 186 |
$html .= '<input type="hidden" name="telno" value="99999999999">'; |
| 187 |
}else{ |
| 188 |
$html .= '<input type="hidden" name="username" value="' . esc_attr(trim($usces_entries['customer']['name3']) . trim($usces_entries['customer']['name4'])) . '">'; |
| 189 |
$html .= '<input type="hidden" name="telno" value="' . esc_attr(str_replace('-', '', $usces_entries['customer']['tel'])) . '">'; |
| 190 |
} |
| 191 |
$html .= '<input type="hidden" name="email" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '"> |
| 192 |
<input type="hidden" name="sendid" value="' . $member['ID'] . '"> |
| 193 |
<input type="hidden" name="sendpoint" value="' . $rand . '"> |
| 194 |
<input type="hidden" name="siteurl" value="' . get_option('home') . '"> |
| 195 |
<input type="hidden" name="sitestr" value="「' . esc_attr(get_option('blogname')) . '」トップページへ"> |
| 196 |
'; |
| 197 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 198 |
$onclick = ' onClick="document.charset=\'Shift_JIS\';"'; |
| 199 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', $onclick) . $purchase_disabled . ' /></div>'; |
| 200 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 201 |
$html .= '</form>'; |
| 202 |
$html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 203 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /></div>'; |
| 204 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 205 |
$html .= '</form>'."\n"; |
| 206 |
break; |
| 207 |
|
| 208 |
case 'acting_remise_card': |
| 209 |
$charging_type = $usces->getItemChargingType($cart[0]['post_id'], $cart); |
| 210 |
$frequency = $usces->getItemFrequency($cart[0]['post_id']); |
| 211 |
$chargingday = $usces->getItemChargingDay($cart[0]['post_id']); |
| 212 |
$acting_opts = $usces->options['acting_settings']['remise']; |
| 213 |
$usces->save_order_acting_data($rand); |
| 214 |
$member = $usces->get_member(); |
| 215 |
$send_url = ('public' == $acting_opts['card_pc_ope']) ? $acting_opts['send_url_pc'] : $acting_opts['send_url_pc_test']; |
| 216 |
$html .= '<form id="purchase_form" name="purchase_form" action="' . $send_url . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 217 |
<input type="hidden" name="SHOPCO" value="' . esc_attr($acting_opts['SHOPCO']) . '" /> |
| 218 |
<input type="hidden" name="HOSTID" value="' . esc_attr($acting_opts['HOSTID']) . '" /> |
| 219 |
<input type="hidden" name="REMARKS3" value="' . $acting_opts['REMARKS3'] . '" /> |
| 220 |
<input type="hidden" name="S_TORIHIKI_NO" value="' . $rand . '" /> |
| 221 |
<input type="hidden" name="JOB" value="' . apply_filters('usces_filter_remise_card_job', $acting_opts['card_jb']) . '" /> |
| 222 |
<input type="hidden" name="MAIL" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '" /> |
| 223 |
<input type="hidden" name="ITEM" value="' . apply_filters('usces_filter_remise_card_item', '0000120') . '" /> |
| 224 |
<input type="hidden" name="TOTAL" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '" /> |
| 225 |
<input type="hidden" name="AMOUNT" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '" /> |
| 226 |
<input type="hidden" name="RETURL" value="' . USCES_CART_URL . $usces->delim . 'acting=remise_card&acting_return=1" /> |
| 227 |
<input type="hidden" name="NG_RETURL" value="' . USCES_CART_URL . $usces->delim . 'acting=remise_card&acting_return=0" /> |
| 228 |
<input type="hidden" name="EXITURL" value="' . USCES_CART_URL . $usces->delim . 'confirm=1" /> |
| 229 |
'; |
| 230 |
if( 'on' == $acting_opts['payquick'] && $usces->is_member_logged_in() ){ |
| 231 |
$pcid = $usces->get_member_meta_value('remise_pcid', $member['ID']); |
| 232 |
$html .= '<input type="hidden" name="PAYQUICK" value="1">'; |
| 233 |
if( $pcid != NULL ) |
| 234 |
$html .= '<input type="hidden" name="PAYQUICKID" value="' . $pcid . '">'; |
| 235 |
} |
| 236 |
if( 'on' == $acting_opts['howpay'] && isset($_POST['div']) && '0' !== $_POST['div'] && 'continue' != $charging_type ){ |
| 237 |
$html .= '<input type="hidden" name="div" value="' . $_POST['div'] . '">'; |
| 238 |
switch( $_POST['div'] ){ |
| 239 |
case '1': |
| 240 |
$html .= '<input type="hidden" name="METHOD" value="61">'; |
| 241 |
$html .= '<input type="hidden" name="PTIMES" value="2">'; |
| 242 |
break; |
| 243 |
case '2': |
| 244 |
$html .= '<input type="hidden" name="METHOD" value="80">'; |
| 245 |
break; |
| 246 |
} |
| 247 |
}else{ |
| 248 |
$html .= '<input type="hidden" name="div" value="0">'; |
| 249 |
$html .= '<input type="hidden" name="METHOD" value="10">'; |
| 250 |
} |
| 251 |
if( 'continue' == $charging_type ){ |
| 252 |
$nextdate = current_time('mysql'); |
| 253 |
$html .= '<input type="hidden" name="AUTOCHARGE" value="1">'; |
| 254 |
$html .= '<input type="hidden" name="AC_S_KAIIN_NO" value="' . $member['ID'] . '">'; |
| 255 |
$html .= '<input type="hidden" name="AC_NAME" value="' . esc_attr($usces_entries['customer']['name1'].$usces_entries['customer']['name2']) . '">'; |
| 256 |
$html .= '<input type="hidden" name="AC_KANA" value="' . esc_attr($usces_entries['customer']['name3'].$usces_entries['customer']['name4']) . '">'; |
| 257 |
$html .= '<input type="hidden" name="AC_TEL" value="' . esc_attr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8'))) . '">'; |
| 258 |
$html .= '<input type="hidden" name="AC_AMOUNT" value="' . $usces_entries['order']['total_full_price'] . '">'; |
| 259 |
$html .= '<input type="hidden" name="AC_TOTAL" value="' . $usces_entries['order']['total_full_price'] . '">'; |
| 260 |
$html .= '<input type="hidden" name="AC_NEXT_DATE" value="' . date('Ymd', dlseller_first_charging($cart[0]['post_id'], 'time')) . '">'; |
| 261 |
$html .= '<input type="hidden" name="AC_INTERVAL" value="' . $frequency . 'M">'; |
| 262 |
} |
| 263 |
|
| 264 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 265 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"') . $purchase_disabled . ' /></div>'; |
| 266 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 267 |
$html .= '</form>'; |
| 268 |
$html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 269 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /></div>'; |
| 270 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 271 |
$html .= '</form>'."\n"; |
| 272 |
break; |
| 273 |
|
| 274 |
case 'acting_remise_conv': |
| 275 |
if( function_exists('mb_strlen') ){ |
| 276 |
$biko = ( 22 < mb_strlen($usces_entries['order']['note'])) ? (mb_substr($usces_entries['order']['note'], 0, 22).'...') : $usces_entries['order']['note']; |
| 277 |
}else{ |
| 278 |
$biko = ( 44 < strlen($usces_entries['order']['note'])) ? (substr($usces_entries['order']['note'], 0, 44).'...') : $usces_entries['order']['note']; |
| 279 |
} |
| 280 |
$datestr = get_date_from_gmt(gmdate('Y-m-d H:i:s', time())); |
| 281 |
$acting_opts = $usces->options['acting_settings']['remise']; |
| 282 |
$usces->save_order_acting_data($rand); |
| 283 |
$send_url = ('public' == $acting_opts['conv_pc_ope']) ? $acting_opts['send_url_cvs_pc'] : $acting_opts['send_url_cvs_pc_test']; |
| 284 |
$html .= '<form id="purchase_form" name="purchase_form" action="' . $send_url . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 285 |
<input type="hidden" name="SHOPCO" value="' . esc_attr($acting_opts['SHOPCO']) . '" /> |
| 286 |
<input type="hidden" name="HOSTID" value="' . esc_attr($acting_opts['HOSTID']) . '" /> |
| 287 |
<input type="hidden" name="REMARKS3" value="' . $acting_opts['REMARKS3'] . '" /> |
| 288 |
<input type="hidden" name="S_TORIHIKI_NO" value="' . $rand . '" /> |
| 289 |
<input type="hidden" name="NAME1" value="' . esc_attr($usces_entries['customer']['name1']) . '" /> |
| 290 |
<input type="hidden" name="NAME2" value="' . esc_attr($usces_entries['customer']['name2']) . '" /> |
| 291 |
<input type="hidden" name="KANA1" value="' . esc_attr($usces_entries['customer']['name3']) . '" /> |
| 292 |
<input type="hidden" name="KANA2" value="' . esc_attr($usces_entries['customer']['name4']) . '" /> |
| 293 |
<input type="hidden" name="YUBIN1" value="' . esc_attr(substr(str_replace('-', '', $usces_entries['customer']['zipcode']), 0, 3)) . '" /> |
| 294 |
<input type="hidden" name="YUBIN2" value="' . esc_attr(substr(str_replace('-', '', $usces_entries['customer']['zipcode']), 3, 4)) . '" /> |
| 295 |
<input type="hidden" name="ADD1" value="' . esc_attr($usces_entries['customer']['pref'] . $usces_entries['customer']['address1']) . '" /> |
| 296 |
<input type="hidden" name="ADD2" value="' . esc_attr($usces_entries['customer']['address2']) . '" /> |
| 297 |
<input type="hidden" name="ADD3" value="' . esc_attr($usces_entries['customer']['address3']) . '" /> |
| 298 |
<input type="hidden" name="TEL" value="' . esc_attr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8'))) . '" /> |
| 299 |
<input type="hidden" name="MAIL" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '" /> |
| 300 |
<input type="hidden" name="TOTAL" value="' . $usces_entries['order']['total_full_price'] . '" /> |
| 301 |
<input type="hidden" name="TAX" value="" /> |
| 302 |
<input type="hidden" name="S_PAYDATE" value="' . date('Ymd', mktime(0,0,0,substr($datestr, 5, 2),substr($datestr, 8, 2)+$acting_opts['S_PAYDATE'],substr($datestr, 0, 4))) . '" /> |
| 303 |
<input type="hidden" name="SEIYAKUDATE" value="' . date('Ymd', mktime(0,0,0,substr($datestr, 5, 2),substr($datestr, 8, 2),substr($datestr, 0, 4))) . '" /> |
| 304 |
<input type="hidden" name="BIKO" value="' . esc_html($biko) . '" /> |
| 305 |
'; |
| 306 |
$mname_01 = '商品総額'; |
| 307 |
$html .= '<input type="hidden" name="MNAME_01" value="' . $mname_01 . '" /> |
| 308 |
<input type="hidden" name="MSUM_01" value="' . usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false) . '" /> |
| 309 |
<input type="hidden" name="MNAME_02" value="" /> |
| 310 |
<input type="hidden" name="MSUM_02" value="0" /> |
| 311 |
<input type="hidden" name="MNAME_03" value="" /> |
| 312 |
<input type="hidden" name="MSUM_03" value="0" /> |
| 313 |
<input type="hidden" name="MNAME_04" value="" /> |
| 314 |
<input type="hidden" name="MSUM_04" value="0" /> |
| 315 |
<input type="hidden" name="MNAME_05" value="" /> |
| 316 |
<input type="hidden" name="MSUM_05" value="0" /> |
| 317 |
<input type="hidden" name="MNAME_06" value="" /> |
| 318 |
<input type="hidden" name="MSUM_06" value="0" /> |
| 319 |
<input type="hidden" name="MNAME_07" value="" /> |
| 320 |
<input type="hidden" name="MSUM_07" value="0" /> |
| 321 |
'; |
| 322 |
|
| 323 |
$html .= '<input type="hidden" name="RETURL" value="' . USCES_CART_URL . $usces->delim . 'acting=remise_conv&acting_return=1" /> |
| 324 |
<input type="hidden" name="NG_RETURL" value="' . USCES_CART_URL . $usces->delim . 'acting=remise_conv&acting_return=0" /> |
| 325 |
<input type="hidden" name="OPT" value="1" /> |
| 326 |
<input type="hidden" name="EXITURL" value="' . USCES_CART_URL . $usces->delim . 'confirm=1" /> |
| 327 |
'; |
| 328 |
$html .= ' |
| 329 |
<input type="hidden" name="dummy" value="�" /> |
| 330 |
<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"' . apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"') . $purchase_disabled . ' /></div>'; |
| 331 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 332 |
$html .= '</form>'; |
| 333 |
$html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 334 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /></div>'; |
| 335 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 336 |
$html .= '</form>'."\n"; |
| 337 |
break; |
| 338 |
|
| 339 |
//20101018ysk start |
| 340 |
case 'acting_jpayment_card'://クレジット決済(J-Payment) |
| 341 |
$acting_opts = $usces->options['acting_settings']['jpayment']; |
| 342 |
$usces->save_order_acting_data($rand); |
| 343 |
//20120823ysk start 0000547 |
| 344 |
$itemName = $usces->getItemName($cart[0]['post_id']); |
| 345 |
if(1 < count($cart)) $itemName .= ','.__('Others', 'usces'); |
| 346 |
if(50 < mb_strlen($itemName)) $itemName = mb_substr($itemName, 0, 50).'...'; |
| 347 |
$quantity = 0; |
| 348 |
foreach($cart as $cart_row) { |
| 349 |
$quantity += $cart_row['quantity']; |
| 350 |
} |
| 351 |
$desc = $itemName.' '.__('Quantity','usces').':'.$quantity; |
| 352 |
//20120823ysk end |
| 353 |
$html .= '<form id="purchase_form" name="purchase_form" action="'.$acting_opts['send_url'].'" method="post" onKeyDown="if(event.keyCode == 13) {return false;}" > |
| 354 |
<input type="hidden" name="aid" value="'.$acting_opts['aid'].'" /> |
| 355 |
<input type="hidden" name="cod" value="'.$rand.'" /> |
| 356 |
<input type="hidden" name="jb" value="'.$acting_opts['card_jb'].'" /> |
| 357 |
<input type="hidden" name="am" value="'.usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false).'" /> |
| 358 |
<input type="hidden" name="tx" value="0" /> |
| 359 |
<input type="hidden" name="sf" value="0" /> |
| 360 |
<input type="hidden" name="pt" value="1" /> |
| 361 |
<input type="hidden" name="inm" value="'.$desc.'" /> |
| 362 |
<input type="hidden" name="pn" value="'.esc_attr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8'))).'" /> |
| 363 |
<input type="hidden" name="em" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'" /> |
| 364 |
<input type="hidden" name="acting" value="jpayment_card" /> |
| 365 |
<input type="hidden" name="acting_return" value="1" /> |
| 366 |
<input type="hidden" name="page_id" value="'.USCES_CART_NUMBER.'" /> |
| 367 |
<input type="hidden" name="uscesid" value="' . $usces->get_uscesid(false) . '"> |
| 368 |
'; |
| 369 |
$html .= '<div class="send"><input name="purchase_jpayment" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', NULL).$purchase_disabled.' /></div>'; |
| 370 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 371 |
$html .= '</form>'; |
| 372 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if(event.keyCode == 13) {return false;}"> |
| 373 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 374 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 375 |
$html .= '</form>'."\n"; |
| 376 |
break; |
| 377 |
case 'acting_jpayment_conv'://コンビニ・ペーパーレス決済(J-Payment) |
| 378 |
$acting_opts = $usces->options['acting_settings']['jpayment']; |
| 379 |
$usces->save_order_acting_data($rand); |
| 380 |
//20120823ysk start 0000547 |
| 381 |
$itemName = $usces->getItemName($cart[0]['post_id']); |
| 382 |
if(1 < count($cart)) $itemName .= ','.__('Others', 'usces'); |
| 383 |
if(50 < mb_strlen($itemName)) $itemName = mb_substr($itemName, 0, 50).'...'; |
| 384 |
$quantity = 0; |
| 385 |
foreach($cart as $cart_row) { |
| 386 |
$quantity += $cart_row['quantity']; |
| 387 |
} |
| 388 |
$desc = $itemName.' '.__('Quantity','usces').':'.$quantity; |
| 389 |
//20120823ysk end |
| 390 |
$html .= '<form id="purchase_form" name="purchase_form" action="'.$acting_opts['send_url'].'" method="post" onKeyDown="if(event.keyCode == 13) {return false;}" > |
| 391 |
<input type="hidden" name="aid" value="'.$acting_opts['aid'].'" /> |
| 392 |
<input type="hidden" name="cod" value="'.$rand.'" /> |
| 393 |
<input type="hidden" name="jb" value="CAPTURE" /> |
| 394 |
<input type="hidden" name="am" value="'.usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false).'" /> |
| 395 |
<input type="hidden" name="tx" value="0" /> |
| 396 |
<input type="hidden" name="sf" value="0" /> |
| 397 |
<input type="hidden" name="pt" value="2" /> |
| 398 |
<input type="hidden" name="inm" value="'.$desc.'" /> |
| 399 |
<input type="hidden" name="pn" value="'.esc_attr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8'))).'" /> |
| 400 |
<input type="hidden" name="em" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'" /> |
| 401 |
<input type="hidden" name="acting" value="jpayment_conv" /> |
| 402 |
<input type="hidden" name="acting_return" value="1" /> |
| 403 |
<input type="hidden" name="page_id" value="'.USCES_CART_NUMBER.'" /> |
| 404 |
<input type="hidden" name="uscesid" value="' . $usces->get_uscesid(false) . '"> |
| 405 |
'; |
| 406 |
$html .= '<div class="send"><input name="purchase_jpayment" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', NULL).$purchase_disabled.' /></div>'; |
| 407 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 408 |
$html .= '</form>'; |
| 409 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if(event.keyCode == 13) {return false;}"> |
| 410 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 411 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 412 |
$html .= '</form>'."\n"; |
| 413 |
break; |
| 414 |
case 'acting_jpayment_bank'://バンクチェック決済(J-Payment) |
| 415 |
$acting_opts = $usces->options['acting_settings']['jpayment']; |
| 416 |
$usces->save_order_acting_data($rand); |
| 417 |
//20120823ysk start 0000547 |
| 418 |
$itemName = $usces->getItemName($cart[0]['post_id']); |
| 419 |
if(1 < count($cart)) $itemName .= ','.__('Others', 'usces'); |
| 420 |
if(50 < mb_strlen($itemName)) $itemName = mb_substr($itemName, 0, 50).'...'; |
| 421 |
$quantity = 0; |
| 422 |
foreach($cart as $cart_row) { |
| 423 |
$quantity += $cart_row['quantity']; |
| 424 |
} |
| 425 |
$desc = $itemName.' '.__('Quantity','usces').':'.$quantity; |
| 426 |
//20120823ysk end |
| 427 |
$html .= '<form id="purchase_form" name="purchase_form" action="'.$acting_opts['send_url'].'" method="post" onKeyDown="if(event.keyCode == 13) {return false;}" > |
| 428 |
<input type="hidden" name="aid" value="'.$acting_opts['aid'].'" /> |
| 429 |
<input type="hidden" name="cod" value="'.$rand.'" /> |
| 430 |
<input type="hidden" name="jb" value="CAPTURE" /> |
| 431 |
<input type="hidden" name="am" value="'.usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false).'" /> |
| 432 |
<input type="hidden" name="tx" value="0" /> |
| 433 |
<input type="hidden" name="sf" value="0" /> |
| 434 |
<input type="hidden" name="pt" value="7" /> |
| 435 |
<input type="hidden" name="inm" value="'.$desc.'" /> |
| 436 |
<input type="hidden" name="pn" value="'.esc_attr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8'))).'" /> |
| 437 |
<input type="hidden" name="em" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'" /> |
| 438 |
<input type="hidden" name="acting" value="jpayment_bank" /> |
| 439 |
<input type="hidden" name="acting_return" value="1" /> |
| 440 |
<input type="hidden" name="page_id" value="'.USCES_CART_NUMBER.'" /> |
| 441 |
<input type="hidden" name="uscesid" value="' . $usces->get_uscesid(false) . '"> |
| 442 |
'; |
| 443 |
$html .= '<div class="send"><input name="purchase_jpayment" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', NULL).$purchase_disabled.' /></div>'; |
| 444 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 445 |
$html .= '</form>'; |
| 446 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if(event.keyCode == 13) {return false;}"> |
| 447 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 448 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 449 |
$html .= '</form>'."\n"; |
| 450 |
break; |
| 451 |
//20101018ysk end |
| 452 |
//20110208ysk start |
| 453 |
case 'acting_paypal_ec'://PayPal(エクスプレス・チェックアウト) |
| 454 |
$acting_opts = $usces->options['acting_settings']['paypal']; |
| 455 |
$currency_code = $usces->get_currency_code(); |
| 456 |
$country = (!empty($usces_entries['delivery']['country'])) ? $usces_entries['delivery']['country'] : usces_get_base_country(); |
| 457 |
//$zip = str_replace('-', '', $usces_entries['customer']['zipcode']);//20110502ysk |
| 458 |
$zip = $usces_entries['delivery']['zipcode']; |
| 459 |
$tel = ltrim(str_replace('-', '', $usces_entries['delivery']['tel']), '0'); |
| 460 |
$html .= '<form id="purchase_form" action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">'; |
| 461 |
//20110412ysk start |
| 462 |
//20110516ysk start 0000166 |
| 463 |
//if(usces_get_apply_addressform($country) == 'JP') { |
| 464 |
// $html .= '<input type="hidden" name="SHIPTONAME" value="'.esc_attr($usces_entries['customer']['name1'].' '.$usces_entries['customer']['name2']).'">'; |
| 465 |
//} else { |
| 466 |
//20120718ysk start 0000529 |
| 467 |
//$html .= '<input type="hidden" name="SHIPTONAME" value="'.esc_attr($usces_entries['customer']['name2'].' '.$usces_entries['customer']['name1']).'">'; |
| 468 |
$name = apply_filters('usces_filter_paypalec_shiptoname', esc_attr($usces_entries['customer']['name2'].' '.$usces_entries['customer']['name1'])); |
| 469 |
$html .= '<input type="hidden" name="SHIPTONAME" value="'.$name.'">'; |
| 470 |
//20120718ysk end |
| 471 |
//} |
| 472 |
//20110516ysk end |
| 473 |
$html .= '<input type="hidden" name="SHIPTOSTREET" value="'.esc_html($usces_entries['delivery']['address2']).'"> |
| 474 |
<input type="hidden" name="SHIPTOSTREET2" value="'.esc_html($usces_entries['delivery']['address3']).'"> |
| 475 |
<input type="hidden" name="SHIPTOCITY" value="'.esc_html($usces_entries['delivery']['address1']).'"> |
| 476 |
<input type="hidden" name="SHIPTOSTATE" value="'.esc_html($usces_entries['delivery']['pref']).'"> |
| 477 |
<input type="hidden" name="SHIPTOCOUNTRYCODE" value="'.$country.'"> |
| 478 |
<input type="hidden" name="SHIPTOZIP" value="'.$zip.'"> |
| 479 |
<input type="hidden" name="SOLUTIONTYPE" value="Sole"> |
| 480 |
<input type="hidden" name="LANDINGPAGE" value="Billing"> |
| 481 |
<input type="hidden" name="SHIPTOPHONENUM" value="'.$tel.'"> |
| 482 |
<input type="hidden" name="CURRENCYCODE" value="'.$currency_code.'"> |
| 483 |
<input type="hidden" name="EMAIL" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'">'; |
| 484 |
//20120629ysk start 0000520 |
| 485 |
if( 'shipped' != $usces->getItemDivision( $cart[0]['post_id'] ) ) { |
| 486 |
$html .= '<input type="hidden" name="NOSHIPPING" value="1">'; |
| 487 |
} |
| 488 |
//20120629ysk end |
| 489 |
$charging_type = $usces->getItemChargingType($cart[0]['post_id'], $cart); |
| 490 |
//$frequency = $usces->getItemFrequency($cart[0]['post_id']); |
| 491 |
if( 'continue' != $charging_type ) { |
| 492 |
//通常購� |
| 493 |
� |
| 494 |
//20110606ysk start |
| 495 |
$itemName = $usces->getItemName($cart[0]['post_id']); |
| 496 |
if(1 < count($cart)) $itemName .= ','.__('Others', 'usces'); |
| 497 |
if(50 < mb_strlen($itemName)) $itemName = mb_substr($itemName, 0, 50).'...'; |
| 498 |
$quantity = 0; |
| 499 |
foreach($cart as $cart_row) { |
| 500 |
$quantity += $cart_row['quantity']; |
| 501 |
} |
| 502 |
$desc = $itemName.' '.__('Quantity','usces').':'.$quantity; |
| 503 |
$html .= '<input type="hidden" name="DESC" value="'.$desc.'">'; |
| 504 |
//20110606ysk end |
| 505 |
$html .= '<input type="hidden" name="AMT" value="'.usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false).'">'; |
| 506 |
} else { |
| 507 |
//定期支払い |
| 508 |
//$desc = usces_make_agreement_description($cart, $usces_entries['order']['total_items_price']); |
| 509 |
$desc = usces_make_agreement_description($cart, $usces_entries['order']['total_full_price']);//20111125ysk 0000320 |
| 510 |
$html .= '<input type="hidden" name="L_BILLINGTYPE0" value="RecurringPayments"> |
| 511 |
<input type="hidden" name="L_BILLINGAGREEMENTDESCRIPTION0" value="'.esc_html($desc).'"> |
| 512 |
<input type="hidden" name="AMT" value="0">'; |
| 513 |
} |
| 514 |
$html .= '<input type="hidden" name="purchase" value="acting_paypal_ec">';//20110502ysk |
| 515 |
$html .= '<div class="send"><input type="image" src="https://www.paypal.com/'.( USCES_JP ? 'ja_JP/JP' : 'en_US' ).'/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" value="submit" alt="PayPal"'.apply_filters('usces_filter_confirm_nextbutton', NULL).$purchase_disabled.' /></div>'; |
| 516 |
//20110412ysk end |
| 517 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 518 |
$html .= '</form>'; |
| 519 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 520 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 521 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 522 |
$html .= '</form>'; |
| 523 |
break; |
| 524 |
//20110208ysk end |
| 525 |
//20120413ysk start |
| 526 |
case 'acting_sbps_card': |
| 527 |
case 'acting_sbps_conv': |
| 528 |
case 'acting_sbps_payeasy': |
| 529 |
case 'acting_sbps_wallet': |
| 530 |
case 'acting_sbps_mobile': |
| 531 |
$charging_type = $usces->getItemChargingType($cart[0]['post_id']); |
| 532 |
$frequency = $usces->getItemFrequency($cart[0]['post_id']); |
| 533 |
$chargingday = $usces->getItemChargingDay($cart[0]['post_id']); |
| 534 |
$acting_opts = $usces->options['acting_settings']['sbps']; |
| 535 |
$usces->save_order_acting_data($rand); |
| 536 |
$member = $usces->get_member(); |
| 537 |
$cust_code = ( empty($member['ID']) ) ? str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8')) : $member['ID']; |
| 538 |
if( 'public' == $acting_opts['ope'] ) { |
| 539 |
$send_url = $acting_opts['send_url']; |
| 540 |
} elseif( 'test' == $acting_opts['ope'] ) { |
| 541 |
$send_url = $acting_opts['send_url_test']; |
| 542 |
} else { |
| 543 |
$send_url = $acting_opts['send_url_check']; |
| 544 |
} |
| 545 |
$sbps_cust_no = ''; |
| 546 |
$sbps_payment_no = ''; |
| 547 |
switch( $acting_flag ) { |
| 548 |
case 'acting_sbps_card': |
| 549 |
//if( 'on' == $acting_opts['cust'] ) { |
| 550 |
// $sbps_cust_no = $usces->get_member_meta_value( 'sbps_cust_no', $member['ID'] ); |
| 551 |
// $sbps_payment_no = $usces->get_member_meta_value( 'sbps_payment_no', $member['ID'] ); |
| 552 |
//} |
| 553 |
$pay_method = ( 'on' == $acting_opts['3d_secure'] ) ? "credit3d" : "credit"; |
| 554 |
$acting = "sbps_card"; |
| 555 |
$free_csv = ""; |
| 556 |
break; |
| 557 |
case 'acting_sbps_conv': |
| 558 |
$pay_method = "webcvs"; |
| 559 |
$acting = "sbps_conv"; |
| 560 |
$free_csv = usces_set_free_csv( $usces_entries['customer'] ); |
| 561 |
break; |
| 562 |
case 'acting_sbps_payeasy': |
| 563 |
$pay_method = "payeasy"; |
| 564 |
$acting = "sbps_payeasy"; |
| 565 |
$free_csv = usces_set_free_csv( $usces_entries['customer'] ); |
| 566 |
break; |
| 567 |
case 'acting_sbps_wallet': |
| 568 |
$pay_method = ""; |
| 569 |
if( 'on' == $acting_opts['wallet_yahoowallet'] ) $pay_method .= ",yahoowallet"; |
| 570 |
if( 'on' == $acting_opts['wallet_rakuten'] ) $pay_method .= ",rakuten"; |
| 571 |
if( 'on' == $acting_opts['wallet_paypal'] ) $pay_method .= ",paypal"; |
| 572 |
if( 'on' == $acting_opts['wallet_netmile'] ) $pay_method .= ",netmile"; |
| 573 |
if( 'on' == $acting_opts['wallet_alipay'] ) $pay_method .= ",alipay"; |
| 574 |
$pay_method = ltrim( $pay_method, "," ); |
| 575 |
$acting = "sbps_wallet"; |
| 576 |
$free_csv = ""; |
| 577 |
break; |
| 578 |
case 'acting_sbps_mobile': |
| 579 |
$pay_method = ""; |
| 580 |
if( 'on' == $acting_opts['mobile_docomo'] ) $pay_method .= ",docomo"; |
| 581 |
if( 'on' == $acting_opts['mobile_softbank'] ) $pay_method .= ",softbank"; |
| 582 |
if( 'on' == $acting_opts['mobile_auone'] ) $pay_method .= ",auone"; |
| 583 |
if( 'on' == $acting_opts['mobile_mysoftbank'] ) $pay_method .= ",mysoftbank"; |
| 584 |
$pay_method = ltrim( $pay_method, "," ); |
| 585 |
$acting = "sbps_mobile"; |
| 586 |
$free_csv = ""; |
| 587 |
break; |
| 588 |
} |
| 589 |
$item_id = $cart[0]['post_id']; |
| 590 |
$item_name = $usces->getItemName($cart[0]['post_id']); |
| 591 |
if(1 < count($cart)) $item_name .= ' '.__('Others', 'usces'); |
| 592 |
if(36 < mb_strlen($item_name)) $item_name = mb_substr($item_name, 0, 36).'...'; |
| 593 |
$amount = usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false); |
| 594 |
$pay_type = "0"; |
| 595 |
$auto_charge_type = ""; |
| 596 |
$service_type = "0"; |
| 597 |
$div_settle = ""; |
| 598 |
$last_charge_month = ""; |
| 599 |
$camp_type = ""; |
| 600 |
$terminal_type = "0"; |
| 601 |
$success_url = USCES_CART_URL.$usces->delim."acting=".$acting."&acting_return=1"; |
| 602 |
$cancel_url = USCES_CART_URL.$usces->delim."acting=".$acting."&confirm=1"; |
| 603 |
$error_url = USCES_CART_URL.$usces->delim."acting=".$acting."&acting_return=0"; |
| 604 |
$pagecon_url = USCES_CART_URL; |
| 605 |
$free1 = $acting_flag; |
| 606 |
$request_date = date('YmdHis', current_time('timestamp')); |
| 607 |
$limit_second = "600"; |
| 608 |
$sps_hashcode = $pay_method.$acting_opts['merchant_id'].$acting_opts['service_id'].$cust_code.$sbps_cust_no.$sbps_payment_no.$rand.$item_id.$item_name.$amount.$pay_type.$auto_charge_type.$service_type.$div_settle.$last_charge_month.$camp_type.$terminal_type.$success_url.$cancel_url.$error_url.$pagecon_url.$free1.$free_csv.$request_date.$limit_second.$acting_opts['hash_key']; |
| 609 |
$sps_hashcode = sha1( $sps_hashcode ); |
| 610 |
$html .= '<form id="purchase_form" name="purchase_form" action="'.$send_url.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 611 |
<input type="hidden" name="pay_method" value="'.$pay_method.'" /> |
| 612 |
<input type="hidden" name="merchant_id" value="'.$acting_opts['merchant_id'].'" /> |
| 613 |
<input type="hidden" name="service_id" value="'.$acting_opts['service_id'].'" /> |
| 614 |
<input type="hidden" name="cust_code" value="'.$cust_code.'" /> |
| 615 |
<input type="hidden" name="sps_cust_no" value="'.$sbps_cust_no.'" /> |
| 616 |
<input type="hidden" name="sps_payment_no" value="'.$sbps_payment_no.'" /> |
| 617 |
<input type="hidden" name="order_id" value="'.$rand.'" /> |
| 618 |
<input type="hidden" name="item_id" value="'.$item_id.'" /> |
| 619 |
<input type="hidden" name="pay_item_id" value="" /> |
| 620 |
<input type="hidden" name="item_name" value="'.$item_name.'" /> |
| 621 |
<input type="hidden" name="tax" value="" /> |
| 622 |
<input type="hidden" name="amount" value="'.$amount.'" /> |
| 623 |
<input type="hidden" name="pay_type" value="'.$pay_type.'" /> |
| 624 |
<input type="hidden" name="auto_charge_type" value="'.$auto_charge_type.'" /> |
| 625 |
<input type="hidden" name="service_type" value="'.$service_type.'" /> |
| 626 |
<input type="hidden" name="div_settle" value="'.$div_settle.'" /> |
| 627 |
<input type="hidden" name="last_charge_month" value="'.$last_charge_month.'" /> |
| 628 |
<input type="hidden" name="camp_type" value="'.$camp_type.'" /> |
| 629 |
<input type="hidden" name="terminal_type" value="'.$terminal_type.'" /> |
| 630 |
<input type="hidden" name="success_url" value="'.$success_url.'" /> |
| 631 |
<input type="hidden" name="cancel_url" value="'.$cancel_url.'" /> |
| 632 |
<input type="hidden" name="error_url" value="'.$error_url.'" /> |
| 633 |
<input type="hidden" name="pagecon_url" value="'.$pagecon_url.'" /> |
| 634 |
<input type="hidden" name="free1" value="'.$free1.'" /> |
| 635 |
<input type="hidden" name="free2" value="" /> |
| 636 |
<input type="hidden" name="free3" value="" /> |
| 637 |
<input type="hidden" name="free_csv" value="'.$free_csv.'" /> |
| 638 |
<input type="hidden" name="request_date" value="'.$request_date.'" /> |
| 639 |
<input type="hidden" name="limit_second" value="'.$limit_second.'" /> |
| 640 |
<input type="hidden" name="sps_hashcode" value="'.$sps_hashcode.'" /> |
| 641 |
'; |
| 642 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 643 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.apply_filters('usces_filter_confirm_nextbutton_value', __('Checkout', 'usces')).'"' . apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"') . $purchase_disabled . ' /></div>'; |
| 644 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 645 |
$html .= '</form>'; |
| 646 |
$html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 647 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"' . apply_filters('usces_filter_confirm_prebutton', NULL) . ' /></div>'; |
| 648 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 649 |
$html .= '</form>'."\n"; |
| 650 |
break; |
| 651 |
//20120413ysk end |
| 652 |
//20120618ysk start |
| 653 |
case 'acting_telecom_card'://テレコムクレジット |
| 654 |
$acting_opts = $usces->options['acting_settings']['telecom']; |
| 655 |
$member = $usces->get_member(); |
| 656 |
$memid = empty($member['ID']) ? 99999999 : $member['ID']; |
| 657 |
$send_url = $acting_opts['send_url']; |
| 658 |
$tel = str_replace('-', '', $usces_entries['customer']['tel']); |
| 659 |
$redirect_url = USCES_CART_URL.$usces->delim.'acting=telecom_card&acting_return=1&result=1'; |
| 660 |
$redirect_back_url = USCES_CART_URL.$usces->delim.'confirm=1'; |
| 661 |
$html .= '<form id="purchase_form" action="'.$send_url.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 662 |
<input type="hidden" name="clientip" value="'.$acting_opts['clientip'].'"> |
| 663 |
<input type="hidden" name="money" value="'.apply_filters( 'usces_filter_acting_amount', usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false), $acting_flag ).'"> |
| 664 |
<input type="hidden" name="sendid" value="'.$memid.'"> |
| 665 |
<input type="hidden" name="usrtel" value="'.$tel.'"> |
| 666 |
<input type="hidden" name="usrmail" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'"> |
| 667 |
<input type="hidden" name="redirect_url" value="'.$redirect_url.'"> |
| 668 |
<input type="hidden" name="redirect_back_url" value="'.$redirect_back_url.'"> |
| 669 |
<input type="hidden" name="option" value="'.$rand.'"> |
| 670 |
'; |
| 671 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', NULL).$purchase_disabled.' /></div>'; |
| 672 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 673 |
$html .= '</form>'; |
| 674 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 675 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 676 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 677 |
$html .= '</form>'; |
| 678 |
break; |
| 679 |
//20120618ysk end |
| 680 |
//20121030ysk start |
| 681 |
case 'acting_telecom_edy'://Edy決済(テレコムクレジット) |
| 682 |
$acting_opts = $usces->options['acting_settings']['telecom']; |
| 683 |
$member = $usces->get_member(); |
| 684 |
$memid = empty($member['ID']) ? 99999999 : $member['ID']; |
| 685 |
$redirect_back_url = USCES_CART_URL.$usces->delim.'acting=telecom_edy&acting_return=1®_order=1'; |
| 686 |
$html .= '<form id="purchase_form" action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 687 |
<input type="hidden" name="clientip" value="'.$acting_opts['clientip'].'"> |
| 688 |
<input type="hidden" name="sendid" value="'.$memid.'"> |
| 689 |
<input type="hidden" name="money" value="'.apply_filters( 'usces_filter_acting_amount', usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false), $acting_flag ).'"> |
| 690 |
<input type="hidden" name="redirect_back_url" value="'.$redirect_back_url.'"> |
| 691 |
<input type="hidden" name="option" value="'.$rand.'"> |
| 692 |
'; |
| 693 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', NULL).$purchase_disabled.' /></div>'; |
| 694 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 695 |
$html .= '</form>'; |
| 696 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 697 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 698 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 699 |
$html .= '</form>'; |
| 700 |
break; |
| 701 |
//20121030ysk end |
| 702 |
//20121206ysk start |
| 703 |
case 'acting_digitalcheck_card'://カード決済(デジタルチェック) |
| 704 |
$acting_opts = $usces->options['acting_settings']['digitalcheck']; |
| 705 |
$sid = uniqid(); |
| 706 |
$usces->save_order_acting_data($sid); |
| 707 |
$member = $usces->get_member(); |
| 708 |
if( 'on' == $acting_opts['card_user_id'] && $usces->is_member_logged_in() ) { |
| 709 |
$ip_user_id = $usces->get_member_meta_value( 'digitalcheck_ip_user_id', $member['ID'] ); |
| 710 |
if( empty($ip_user_id) ) { |
| 711 |
$ip_user_id = $member['ID']; |
| 712 |
$send_url = $acting_opts['send_url_card']; |
| 713 |
$fuka = $acting_flag.$ip_user_id; |
| 714 |
} else { |
| 715 |
$send_url = USCES_CART_URL; |
| 716 |
$fuka = $acting_flag; |
| 717 |
} |
| 718 |
} else { |
| 719 |
$ip_user_id = false; |
| 720 |
$send_url = $acting_opts['send_url_card']; |
| 721 |
$fuka = $acting_flag; |
| 722 |
} |
| 723 |
$item_name = $usces->getItemName($cart[0]['post_id']); |
| 724 |
if( 1 < count($cart) ) $item_name .= ','.__('Others', 'usces'); |
| 725 |
if( 46 < strlen($item_name) ) $item_name = mb_strimwidth( $item_name, 0, 50, '...' ); |
| 726 |
$kakutei = ( empty($acting_opts['card_kakutei']) ) ? '0' : $acting_opts['card_kakutei']; |
| 727 |
$html .= '<form id="purchase_form" name="purchase_form" action="'.$send_url.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 728 |
<input type="hidden" name="IP" value="'.$acting_opts['card_ip'].'" /> |
| 729 |
<input type="hidden" name="SID" value="'.$sid.'" /> |
| 730 |
<input type="hidden" name="N1" value="'.$item_name.'"> |
| 731 |
<input type="hidden" name="K1" value="'.usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false).'"> |
| 732 |
<input type="hidden" name="STORE" value="51" /> |
| 733 |
<input type="hidden" name="KAKUTEI" value="'.$kakutei.'" /> |
| 734 |
<input type="hidden" name="FUKA" value="'.$fuka.'" /> |
| 735 |
<input type="hidden" name="NAME1" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name1'], 0, 20)).'" /> |
| 736 |
<input type="hidden" name="NAME2" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name2'], 0, 20)).'" /> |
| 737 |
<input type="hidden" name="KANA1" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name3'], 0, 20)).'" /> |
| 738 |
<input type="hidden" name="KANA2" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name4'], 0, 20)).'" /> |
| 739 |
<input type="hidden" name="YUBIN1" value="'.esc_attr(substr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['zipcode'], 'a', 'UTF-8')), 0, 7)).'" /> |
| 740 |
<input type="hidden" name="TEL" value="'.esc_attr(substr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8')), 0, 11)).'" /> |
| 741 |
<input type="hidden" name="ADR1" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['pref'].$usces_entries['customer']['address1'].$usces_entries['customer']['address2'], 0, 50)).'" /> |
| 742 |
<input type="hidden" name="ADR2" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['address3'], 0, 50)).'" /> |
| 743 |
<input type="hidden" name="MAIL" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'" /> |
| 744 |
'; |
| 745 |
if( $ip_user_id ) { |
| 746 |
$html .= '<input type="hidden" name="PASS" value="'.$acting_opts['card_pass'].'"> |
| 747 |
<input type="hidden" name="IP_USER_ID" value="'.$ip_user_id.'"> |
| 748 |
'; |
| 749 |
} |
| 750 |
if( $usces->use_ssl ) { |
| 751 |
$ssl_url = $usces->options['ssl_url'].'/?page_id='.USCES_CART_NUMBER; |
| 752 |
$html .= '<input type="hidden" name="OKURL" value="'.$ssl_url.$usces->delim.'acting=digitalcheck_card&acting_return=1" /> |
| 753 |
<input type="hidden" name="RT" value="'.$ssl_url.$usces->delim.'acting=digitalcheck_card&confirm=1" /> |
| 754 |
'; |
| 755 |
} else { |
| 756 |
$html .= '<input type="hidden" name="OKURL" value="'.USCES_CART_URL.$usces->delim.'acting=digitalcheck_card&acting_return=1" /> |
| 757 |
<input type="hidden" name="RT" value="'.USCES_CART_URL.$usces->delim.'acting=digitalcheck_card&confirm=1" /> |
| 758 |
'; |
| 759 |
} |
| 760 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 761 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"').$purchase_disabled.' /></div>'; |
| 762 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $sid, $purchase_disabled); |
| 763 |
$html .= '</form>'; |
| 764 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 765 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 766 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 767 |
$html .= '</form>'."\n"; |
| 768 |
break; |
| 769 |
case 'acting_digitalcheck_conv'://コンビニ決済(デジタルチェック) |
| 770 |
$acting_opts = $usces->options['acting_settings']['digitalcheck']; |
| 771 |
$sid = uniqid(); |
| 772 |
$usces->save_order_acting_data($sid); |
| 773 |
$item_name = $usces->getItemName($cart[0]['post_id']); |
| 774 |
if( 1 < count($cart) ) $item_name .= ','.__('Others', 'usces'); |
| 775 |
if( 46 < strlen($item_name) ) $item_name = mb_strimwidth( $item_name, 0, 50, '...' ); |
| 776 |
$today = date( 'Y-m-d', current_time('timestamp') ); |
| 777 |
list( $year, $month, $day ) = explode( '-', $today ); |
| 778 |
$kigen = date( 'Ymd', mktime(0, 0, 0, (int)$month, (int)$day + (int)$acting_opts['conv_kigen'], (int)$year) ); |
| 779 |
$store = ( 1 < count($acting_opts['conv_store']) ) ? '99' : $acting_opts['conv_store'][0]; |
| 780 |
//$html .= '<form id="purchase_form" name="purchase_form" action="'.$acting_opts['send_url_conv'].'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 781 |
$html .= '<form id="purchase_form" name="purchase_form" action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 782 |
<input type="hidden" name="IP" value="'.$acting_opts['conv_ip'].'" /> |
| 783 |
<input type="hidden" name="SID" value="'.$sid.'" /> |
| 784 |
<input type="hidden" name="N1" value="'.esc_attr($item_name).'"> |
| 785 |
<input type="hidden" name="K1" value="'.usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false).'"> |
| 786 |
<input type="hidden" name="STORE" value="'.$store.'" /> |
| 787 |
<input type="hidden" name="FUKA" value="'.$acting_flag.'" /> |
| 788 |
<input type="hidden" name="KIGEN" value="'.$kigen.'" /> |
| 789 |
<input type="hidden" name="NAME1" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name1'], 0, 20)).'" /> |
| 790 |
<input type="hidden" name="NAME2" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name2'], 0, 20)).'" /> |
| 791 |
<input type="hidden" name="KANA1" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name3'], 0, 20)).'" /> |
| 792 |
<input type="hidden" name="KANA2" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['name4'], 0, 20)).'" /> |
| 793 |
<input type="hidden" name="YUBIN1" value="'.esc_attr(substr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['zipcode'], 'a', 'UTF-8')), 0, 7)).'" /> |
| 794 |
<input type="hidden" name="TEL" value="'.esc_attr(substr(str_replace('-', '', mb_convert_kana($usces_entries['customer']['tel'], 'a', 'UTF-8')), 0, 11)).'" /> |
| 795 |
<input type="hidden" name="ADR1" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['pref'].$usces_entries['customer']['address1'].$usces_entries['customer']['address2'], 0, 50)).'" /> |
| 796 |
<input type="hidden" name="ADR2" value="'.esc_attr(mb_strimwidth($usces_entries['customer']['address3'], 0, 50)).'" /> |
| 797 |
<input type="hidden" name="MAIL" value="'.esc_attr($usces_entries['customer']['mailaddress1']).'" /> |
| 798 |
'; |
| 799 |
if( $usces->use_ssl ) { |
| 800 |
$ssl_url = $usces->options['ssl_url'].'/?page_id='.USCES_CART_NUMBER; |
| 801 |
$html .= '<input type="hidden" name="OKURL" value="'.$ssl_url.$usces->delim.'acting=digitalcheck_conv&acting_return=1" /> |
| 802 |
<input type="hidden" name="RT" value="'.$ssl_url.$usces->delim.'acting=digitalcheck_conv&confirm=1" /> |
| 803 |
'; |
| 804 |
} else { |
| 805 |
$html .= '<input type="hidden" name="OKURL" value="'.USCES_CART_URL.$usces->delim.'acting=digitalcheck_conv&acting_return=1" /> |
| 806 |
<input type="hidden" name="RT" value="'.USCES_CART_URL.$usces->delim.'acting=digitalcheck_conv&confirm=1" /> |
| 807 |
'; |
| 808 |
} |
| 809 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 810 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"').$purchase_disabled.' /></div>'; |
| 811 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $sid, $purchase_disabled); |
| 812 |
$html .= '</form>'; |
| 813 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 814 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 815 |
$html = apply_filters('usces_filter_confirm_inform_back', $html); |
| 816 |
$html .= '</form>'."\n"; |
| 817 |
break; |
| 818 |
//20121206ysk end |
| 819 |
//20130225ysk start |
| 820 |
case 'acting_mizuho_card'://カード決済(みずほファクター) |
| 821 |
$acting_opts = $usces->options['acting_settings']['mizuho']; |
| 822 |
$send_url = ( 'public' == $acting_opts['ope'] ) ? $acting_opts['send_url'] : $acting_opts['send_url_test']; |
| 823 |
$p_ver = '0200'; |
| 824 |
$stdate = date( 'Ymd' ); |
| 825 |
$stran = sprintf( '%06d', mt_rand(1, 999999) ); |
| 826 |
$bkcode = 'bg01'; |
| 827 |
$amount = apply_filters( 'usces_filter_acting_amount', usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false), $acting_flag ); |
| 828 |
$schksum = $p_ver.$stdate.$stran.$bkcode.$acting_opts['shopid'].$acting_opts['cshopid'].$amount.$acting_opts['hash_pass']; |
| 829 |
$schksum = htmlspecialchars( md5( $schksum ) ); |
| 830 |
$html .= '<form id="purchase_form" action="'.$send_url.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}" accept-charset="Shift_JIS"> |
| 831 |
<input type="hidden" name="p_ver" value="'.$p_ver.'"> |
| 832 |
<input type="hidden" name="stdate" value="'.$stdate.'"> |
| 833 |
<input type="hidden" name="stran" value="'.$stran.'"> |
| 834 |
<input type="hidden" name="bkcode" value="'.$bkcode.'"> |
| 835 |
<input type="hidden" name="shopid" value="'.$acting_opts['shopid'].'"> |
| 836 |
<input type="hidden" name="cshopid" value="'.$acting_opts['cshopid'].'"> |
| 837 |
<input type="hidden" name="amount" value="'.$amount.'"> |
| 838 |
<input type="hidden" name="schksum" value="'.$schksum.'"> |
| 839 |
'; |
| 840 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 841 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"').$purchase_disabled.' /></div>'; |
| 842 |
$html = apply_filters( 'usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled ); |
| 843 |
$html .= '</form>'; |
| 844 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 845 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 846 |
$html = apply_filters( 'usces_filter_confirm_inform_back', $html ); |
| 847 |
$html .= '</form>'; |
| 848 |
break; |
| 849 |
case 'acting_mizuho_conv1'://コンビニ・ウェルネット決済(みずほファクター) |
| 850 |
case 'acting_mizuho_conv2'://コンビニ・セブンイレブン決済(みずほファクター) |
| 851 |
$acting_opts = $usces->options['acting_settings']['mizuho']; |
| 852 |
$send_url = ( 'public' == $acting_opts['ope'] ) ? $acting_opts['send_url'] : $acting_opts['send_url_test']; |
| 853 |
$p_ver = '0200'; |
| 854 |
$stdate = date( 'Ymd' ); |
| 855 |
$stran = sprintf( '%06d', mt_rand(1, 999999) ); |
| 856 |
$bkcode = 'cv0'.substr( $acting_flag, -1 ); |
| 857 |
$amount = apply_filters( 'usces_filter_acting_amount', usces_crform($usces_entries['order']['total_full_price'], false, false, 'return', false), $acting_flag ); |
| 858 |
$custmKanji = mb_strimwidth( $usces_entries['customer']['name1'].$usces_entries['customer']['name2'], 0, 40 ); |
| 859 |
$mailaddr = esc_attr( $usces_entries['customer']['mailaddress1'] ); |
| 860 |
$tel = str_replace( '-', '', $usces_entries['customer']['tel'] ); |
| 861 |
$schksum = $p_ver.$stdate.$stran.$bkcode.$acting_opts['shopid'].$acting_opts['cshopid'].$amount.mb_convert_encoding($custmKanji, 'SJIS', 'UTF-8').$mailaddr.$tel.$acting_opts['hash_pass']; |
| 862 |
$schksum = htmlspecialchars( md5( $schksum ) ); |
| 863 |
$html .= '<form id="purchase_form" action="'.$send_url.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 864 |
<input type="hidden" name="p_ver" value="'.$p_ver.'"> |
| 865 |
<input type="hidden" name="stdate" value="'.$stdate.'"> |
| 866 |
<input type="hidden" name="stran" value="'.$stran.'"> |
| 867 |
<input type="hidden" name="bkcode" value="'.$bkcode.'"> |
| 868 |
<input type="hidden" name="shopid" value="'.$acting_opts['shopid'].'"> |
| 869 |
<input type="hidden" name="cshopid" value="'.$acting_opts['cshopid'].'"> |
| 870 |
<input type="hidden" name="amount" value="'.$amount.'"> |
| 871 |
<input type="hidden" name="custmKanji" value="'.$custmKanji.'"> |
| 872 |
<input type="hidden" name="mailaddr" value="'.$mailaddr.'"> |
| 873 |
<input type="hidden" name="tel" value="'.$tel.'"> |
| 874 |
<input type="hidden" name="schksum" value="'.$schksum.'"> |
| 875 |
'; |
| 876 |
$html .= '<input type="hidden" name="dummy" value="�" />'; |
| 877 |
$html .= '<div class="send"><input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.apply_filters('usces_filter_confirm_nextbutton', ' onClick="document.charset=\'Shift_JIS\';"').$purchase_disabled.' /></div>'; |
| 878 |
$html = apply_filters( 'usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled ); |
| 879 |
$html .= '</form>'; |
| 880 |
$html .= '<form action="'.USCES_CART_URL.'" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 881 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" class="back_to_delivery_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /></div>'; |
| 882 |
$html = apply_filters( 'usces_filter_confirm_inform_back', $html ); |
| 883 |
$html .= '</form>'; |
| 884 |
break; |
| 885 |
//20130225ysk end |
| 886 |
|
| 887 |
default: |
| 888 |
$html .= '<form id="purchase_form" action="' . apply_filters('usces_filter_acting_url', USCES_CART_URL) . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 889 |
<div class="send"><input name="backDelivery" type="submit" id="back_button" value="'.__('Back', 'usces').'"'.apply_filters('usces_filter_confirm_prebutton', NULL).' /> |
| 890 |
<input name="purchase" type="submit" id="purchase_button" class="checkout_button" value="'.__('Checkout', 'usces').'"'.$purchase_disabled.' /></div>'; |
| 891 |
$html = apply_filters('usces_filter_confirm_inform', $html, $payments, $acting_flag, $rand, $purchase_disabled); |
| 892 |
$html .= '</form>'; |
| 893 |
} |
| 894 |
} |
| 895 |
?> |