api.so-manager-dev.com/app/Services/Wellnet/PaymentLinkBuilder.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

35 lines
1008 B
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
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);
}
}