Resolve KBZ cert paths relative to storage_path()

KBZ_CERT_PATH/KBZ_CERT_KEY_PATH/KBZ_CA_PATH now store paths relative to
storage/, wrapped in storage_path() here instead of requiring an absolute
path in .env.
This commit is contained in:
Nyan Lin Paing
2026-08-30 14:46:13 +07:00
parent 4f0f20659d
commit a905320d50
+3 -3
View File
@@ -58,9 +58,9 @@ return [
'query_order_url' => env('KBZ_QUERY_ORDER_URL'),
'refund_order_url' => env('KBZ_REFUND_ORDER_URL'),
'notify_url' => env('KBZ_NOTIFY_URL'),
'cert_path' => env('KBZ_CERT_PATH'),
'cert_key_path' => env('KBZ_CERT_KEY_PATH'),
'ca_path' => env('KBZ_CA_PATH'),
'cert_path' => env('KBZ_CERT_PATH') ? storage_path(env('KBZ_CERT_PATH')) : null,
'cert_key_path' => env('KBZ_CERT_KEY_PATH') ? storage_path(env('KBZ_CERT_KEY_PATH')) : null,
'ca_path' => env('KBZ_CA_PATH') ? storage_path(env('KBZ_CA_PATH')) : null,
'cert_password' => env('KBZ_CERT_PASSWORD'),
],