From 0223951285b3b2d124f69cedf2dfa5e0ff885082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Mon, 4 May 2026 14:44:31 +0900 Subject: [PATCH] . --- src/Std/Lib/Openprovider.php | 5 ++-- view/openprovider/listinvoices.maron | 26 +++++++++++++++++-- view/openprovider/listpayments.maron | 33 ++++++++++++++++++++++-- view/openprovider/listtransactions.maron | 1 + 4 files changed, 59 insertions(+), 6 deletions(-) diff --git a/src/Std/Lib/Openprovider.php b/src/Std/Lib/Openprovider.php index c6b2f7c..9925bf6 100644 --- a/src/Std/Lib/Openprovider.php +++ b/src/Std/Lib/Openprovider.php @@ -52,8 +52,9 @@ class Openprovider { private string $ip = ''; private int $resellerId = 0; private int $lastAuth = 0; - private string $BASEURL = DEBUG_MODE ? 'http://api.sandbox.openprovider.nl:8480/v1beta' - : 'https://api.openprovider.eu/v1beta'; + private string $BASEURL = 'https://api.openprovider.eu/v1beta'; + // private string $BASEURL = DEBUG_MODE ? 'http://api.sandbox.openprovider.nl:8480/v1beta' + // : 'https://api.openprovider.eu/v1beta'; public function __construct() { if (!OPENPROVIDER_ENABLED) return; diff --git a/view/openprovider/listinvoices.maron b/view/openprovider/listinvoices.maron index 14886d1..cc85876 100644 --- a/view/openprovider/listinvoices.maron +++ b/view/openprovider/listinvoices.maron @@ -1,8 +1,30 @@ {@ include(common/header) @}

請求書一覧

- {@ kys($data) @} - 検索バー
{@ if (isset($data['data']['results'])) @} + + + + + + + + + + + +{@ foreach ($data['data']['results'] as $d) @} + + + + + + + +{@ endforeach @} + +
日時請求書番号単殻
{{ $d['creation_date'] }}{{ $d['invoice_number'] }}{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}請求書をダウンロード添付
+

結果数:{{ $data['data']['total'] }}

+{@ include(common/pagination) @} {@ else @}

何も見つけられませんでした。

{@ endif @} diff --git a/view/openprovider/listpayments.maron b/view/openprovider/listpayments.maron index 54a41c0..7fb80d5 100644 --- a/view/openprovider/listpayments.maron +++ b/view/openprovider/listpayments.maron @@ -1,8 +1,37 @@ {@ include(common/header) @}

支払一覧

- {@ kys($data) @} - 検索バー
{@ if (isset($data['data']['results'])) @} + + + + + + + + + + + + + +{@ foreach ($data['data']['results'] as $d) @} +{$ $p = isset($d['payment_date']) $} +{$ $c = isset($d['confirmation_date']) $} +{$ $r = $d['is_processed'] == 1 $} + + + + + + + + + +{@ endforeach @} + +
日時支払ID種類単殻支払済み認証済み完了
{{ $d['creation_date'] }}{{ $d['id'] }}{{ $d['type'] }}{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}{{ $p ? '〇' : '✕' }}{{ $c ? '〇' : '✕' }}{{ $r ? '〇' : '✕' }}
+

結果数:{{ $data['data']['total'] }}

+{@ include(common/pagination) @} {@ else @}

何も見つけられませんでした。

{@ endif @} diff --git a/view/openprovider/listtransactions.maron b/view/openprovider/listtransactions.maron index aa7515b..a5062f3 100644 --- a/view/openprovider/listtransactions.maron +++ b/view/openprovider/listtransactions.maron @@ -33,6 +33,7 @@

結果数:{{ $data['data']['total'] }}

+{@ include(common/pagination) @} {@ else @}

何も見つけられませんでした。

{@ endif @}