All checks were successful
Deploy api / deploy (push) Successful in 22s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
1008 B
PHP
35 lines
1008 B
PHP
<?php
|
||
|
||
namespace App\Services\Wellnet;
|
||
|
||
/**
|
||
* Wellnet決済リンク生成サービス
|
||
*/
|
||
class PaymentLinkBuilder
|
||
{
|
||
/**
|
||
* クレジット決済画面URL生成(WPS/JLPcaf)
|
||
*
|
||
* @param string $kessaiNo 暗号化オンライン決済番号(KKessaiNo)
|
||
* @return string クレジット決済画面URL
|
||
*/
|
||
public function buildCreditUrl(string $kessaiNo): string
|
||
{
|
||
$baseUrl = config('wellnet.wps.base_url');
|
||
return $baseUrl . '/CafJLP/JLPcaf?GUID=' . urlencode($kessaiNo);
|
||
}
|
||
|
||
/**
|
||
* REM支払案内画面URL生成(JLPcon)
|
||
*
|
||
* @param string $kessaiNo 暗号化オンライン決済番号(KKessaiNo)
|
||
* @return string 支払案内画面URL
|
||
*/
|
||
public function buildRemUrl(string $kessaiNo): string
|
||
{
|
||
$baseUrl = config('wellnet.jlp.base_url');
|
||
// api.pdf のサンプルURLに合わせて /JLPCT/JLPcon を利用
|
||
return $baseUrl . '/JLPCT/JLPcon?GUID=' . urlencode($kessaiNo);
|
||
}
|
||
}
|