8426 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @author: daniel
|
|
|
7 |
* @date: 04.03.24
|
|
|
8 |
* @time: 16:38
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
namespace wpsgKlarna;
|
|
|
12 |
|
|
|
13 |
$oOrder = \wpsg_order::getInstance(intval($this->view['data']['id']));
|
|
|
14 |
|
|
|
15 |
$client_token = $oOrder->getMeta('wpsg_mod_klarna_client_token', false, '');
|
|
|
16 |
$session_id = $oOrder->getMeta('wpsg_mod_klarna_session_id', false, '');
|
|
|
17 |
$authorization_token = $oOrder->getMeta('wpsg_mod_klarna_authorization_token', false, '');
|
|
|
18 |
$klarna_order_id = $oOrder->getMeta('wpsg_mod_klarna_order_id', false, '');
|
|
|
19 |
$capture_id = $oOrder->getMeta('wpsg_mod_klarna_capture_id', false, '');
|
|
|
20 |
|
|
|
21 |
?>
|
|
|
22 |
|
|
|
23 |
<br />
|
|
|
24 |
|
|
|
25 |
<?php if ($client_token !== '') { echo wpsg_drawForm_Input('', __('Klarna ClientToken', 'wpsg'), $client_token, ['readonly' => true]); } ?>
|
|
|
26 |
<?php if ($session_id !== '') { echo wpsg_drawForm_Input('', __('Klarna SessionID', 'wpsg'), $session_id, ['readonly' => true]); } ?>
|
|
|
27 |
<?php if ($authorization_token !== '') { echo wpsg_drawForm_Input('', __('Klarna AuthorizationToken', 'wpsg'), $authorization_token, ['readonly' => true]); } ?>
|
|
|
28 |
<?php if ($klarna_order_id !== '') { echo wpsg_drawForm_Input('', __('Klarna OrderId', 'wpsg'), $klarna_order_id, ['readonly' => true]); } ?>
|
|
|
29 |
<?php if ($capture_id !== '') { echo wpsg_drawForm_Input('', __('Klarna CaptureId', 'wpsg'), $capture_id, ['readonly' => true]); } ?>
|
|
|
30 |
|
|
|
31 |
|