api.so-manager-dev.com/config/wellnet.php
Your Name f139a3f608
All checks were successful
Deploy api / deploy (push) Successful in 22s
支払いAPI実装
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 20:02:25 +09:00

119 lines
4.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Wellnet 決済システム接続設定
*
* テスト環境と本番環境の切替は WELLNET_ENV で行う。
*/
$env = env('WELLNET_ENV', 'test');
return [
/*
|--------------------------------------------------------------------------
| 環境設定
|--------------------------------------------------------------------------
*/
'env' => $env,
/*
|--------------------------------------------------------------------------
| アプリ側運用設定
|--------------------------------------------------------------------------
*/
'link_ttl_minutes' => (int) env('WELLNET_LINK_TTL_MINUTES', 15),
/*
|--------------------------------------------------------------------------
| SOAP接続情報YoyakuSyunoBarCode
|--------------------------------------------------------------------------
*/
'soap' => [
'user_id' => env('WELLNET_SOAP_USER', ''),
'password' => env('WELLNET_SOAP_PASSWORD', ''),
'endpoint' => env("WELLNET_SOAP_ENDPOINT_" . strtoupper($env), ''),
'namespace' => env('WELLNET_SOAP_NAMESPACE', 'http://rem.kessai.info/Kessai/'),
'wsdl_path' => storage_path('app/wellnet/Yoyaku.wsdl'),
'encoding' => 'Shift_JIS',
],
/*
|--------------------------------------------------------------------------
| 決済受付固定値(事業者情報)
|--------------------------------------------------------------------------
*/
'payment' => [
'data_syubetsu' => '4',
'pay_code' => env('WELLNET_PAY_CODE', ''),
'corp_code' => env('WELLNET_CORP_CODE', ''),
'jigyosya_no' => env('WELLNET_JIGYOSYA_NO', ''),
'anken_no' => env('WELLNET_ANKEN_NO', ''),
'ninsyo_key' => env('WELLNET_NINSYO_KEY', ''),
'service_key' => env('WELLNET_SERVICE_KEY', ''),
],
/*
|--------------------------------------------------------------------------
| JLP画面URL支払案内画面
|--------------------------------------------------------------------------
*/
'jlp' => [
'base_url' => env("WELLNET_JLP_BASE_" . strtoupper($env), 'https://link.kessai.info'),
],
/*
|--------------------------------------------------------------------------
| WPS画面URLクレジット決済画面
|--------------------------------------------------------------------------
*/
'wps' => [
'base_url' => env("WELLNET_WPS_BASE_" . strtoupper($env), 'https://wps.kessai.info'),
],
/*
|--------------------------------------------------------------------------
| クレジットAPICAFIS外部インターフェース
|--------------------------------------------------------------------------
*/
'credit_api' => [
'base_url' => env("WELLNET_CREDIT_API_BASE_" . strtoupper($env), ''),
'company_code' => env('WELLNET_CREDIT_COMPANY_CODE', ''),
'auth_key' => env('WELLNET_CREDIT_AUTH_KEY', ''),
'timeout' => 120,
],
/*
|--------------------------------------------------------------------------
| 入金通知Callback設定
|--------------------------------------------------------------------------
*/
'callback' => [
'md5_secret' => env('WELLNET_MD5_SECRET_' . strtoupper($env), env('WELLNET_MD5_SECRET', '')),
'allowed_ips' => array_filter(explode(',', env('WELLNET_ALLOWED_IPS_' . strtoupper($env), env('WELLNET_ALLOWED_IPS', '')))),
],
/*
|--------------------------------------------------------------------------
| 店舗コードマッピング
|--------------------------------------------------------------------------
*/
'store_codes' => [
'00011' => 'セブン-イレブン',
'00021' => 'ローソン',
'00031' => 'ファミリーマート',
'00032' => 'ファミリーマート',
'00051' => 'ミニストップ',
'00061' => 'デイリーヤマザキ',
'00071' => 'セイコーマート',
'10001' => 'ゆうちょ銀行ATM',
'10002' => '銀行ATM',
'99661' => 'JCBカード決済',
'99662' => 'VISAカード決済',
'99663' => 'Mastercardカード決済',
'99664' => 'AMEXカード決済',
'99665' => 'Dinersカード決済',
],
];