@@ 966-976 (lines=11) @@ | ||
963 | } |
|
964 | } |
|
965 | // 客戶名稱CustomerName(UrlEncode, 預設為空字串) |
|
966 | if (! array_key_exists('CustomerName', $arExtend)) { |
|
967 | $arExtend['CustomerName'] = ''; |
|
968 | } else { |
|
969 | if (mb_strlen($arExtend['CustomerName'], 'UTF-8') > 20) { |
|
970 | array_push($arErrors, 'CustomerName max length as 20.'); |
|
971 | } |
|
972 | // 列印註記為列印(Yes)時,此參數不可為空字串 |
|
973 | if ($arExtend['Print'] == ECPay_PrintMark::Yes && strlen($arExtend['CustomerName']) == 0) { |
|
974 | array_push($arErrors, 'CustomerName is required.'); |
|
975 | } |
|
976 | } |
|
977 | ||
978 | // 客戶地址CustomerAddr(UrlEncode, 預設為空字串) |
|
979 | if (! array_key_exists('CustomerAddr', $arExtend)) { |
|
@@ 979-989 (lines=11) @@ | ||
976 | } |
|
977 | ||
978 | // 客戶地址CustomerAddr(UrlEncode, 預設為空字串) |
|
979 | if (! array_key_exists('CustomerAddr', $arExtend)) { |
|
980 | $arExtend['CustomerAddr'] = ''; |
|
981 | } else { |
|
982 | if (mb_strlen($arExtend['CustomerAddr'], 'UTF-8') > 200) { |
|
983 | array_push($arErrors, 'CustomerAddr max length as 200.'); |
|
984 | } |
|
985 | // 列印註記為列印(Yes)時,此參數不可為空字串 |
|
986 | if ($arExtend['Print'] == ECPay_PrintMark::Yes && strlen($arExtend['CustomerAddr']) == 0) { |
|
987 | array_push($arErrors, 'CustomerAddr is required.'); |
|
988 | } |
|
989 | } |
|
990 | // 客戶電話CustomerPhone |
|
991 | if (! array_key_exists('CustomerPhone', $arExtend)) { |
|
992 | $arExtend['CustomerPhone'] = ''; |