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 @}