From 26c7e09705170610528c9cab38dd2b2c39b7e3b2 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Tue, 5 Dec 2023 18:16:07 +0900 Subject: [PATCH] =?UTF-8?q?SMBC=E5=8F=A3=E5=BA=A7=E7=99=BB=E9=8C=B2?= =?UTF-8?q?=E6=99=82=E3=81=AE=E3=83=91=E3=83=A9=E3=83=A1=E3=83=BC=E3=82=BF?= =?UTF-8?q?=E3=81=AE=E3=83=90=E3=83=AA=E3=83=87=E3=83=BC=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/API/SMBC/BankAccountRegister/SMBC.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/API/SMBC/BankAccountRegister/SMBC.php b/app/Http/API/SMBC/BankAccountRegister/SMBC.php index 0ec5898..c1fb17a 100644 --- a/app/Http/API/SMBC/BankAccountRegister/SMBC.php +++ b/app/Http/API/SMBC/BankAccountRegister/SMBC.php @@ -70,9 +70,11 @@ class SMBC throw new ConfigException('smbc.bankAccountRegister.registerUrl', $url); } + $onlyZenkakuCustomerName = preg_replace("/[^\p{Hiragana}\p{Katakana}\p{Han}]/u", "", $customer->customerName); + $param = [ 'bill_no' => sprintf("%012d", $customer->customerCode), - 'bill_name' => $customer->customerName, + 'bill_name' => $onlyZenkakuCustomerName, 'bill_kana' => mb_convert_kana($customer->customerNameKana, "ks"), 'version' => "130",