Subversion Repositories wpShopGermany4

Rev

Blame | Last modification | View Log | RSS feed

<?php
        
        declare(strict_types=1);
        
        /**
         * @author: daniel
         * @date: 04.03.24
         * @time: 16:38
         */
        
        namespace wpsgKlarna;
        
        $oOrder = \wpsg_order::getInstance(intval($this->view['data']['id']));
        
        $client_token = $oOrder->getMeta('wpsg_mod_klarna_client_token', false, '');
        $session_id = $oOrder->getMeta('wpsg_mod_klarna_session_id', false, '');
        $authorization_token = $oOrder->getMeta('wpsg_mod_klarna_authorization_token', false, '');
        $klarna_order_id = $oOrder->getMeta('wpsg_mod_klarna_order_id', false, '');
        $capture_id = $oOrder->getMeta('wpsg_mod_klarna_capture_id', false, '');

?>

<br />
        
<?php if ($client_token !== '') { echo wpsg_drawForm_Input('', __('Klarna ClientToken', 'wpsg'), $client_token, ['readonly' => true]);  } ?>
<?php if ($session_id !== '') {  echo wpsg_drawForm_Input('', __('Klarna SessionID', 'wpsg'), $session_id, ['readonly' => true]); } ?>
<?php if ($authorization_token !== '') {  echo wpsg_drawForm_Input('', __('Klarna AuthorizationToken', 'wpsg'), $authorization_token, ['readonly' => true]); } ?>
<?php if ($klarna_order_id !== '') {  echo wpsg_drawForm_Input('', __('Klarna OrderId', 'wpsg'), $klarna_order_id, ['readonly' => true]); } ?>
<?php if ($capture_id !== '') {  echo wpsg_drawForm_Input('', __('Klarna CaptureId', 'wpsg'), $capture_id, ['readonly' => true]); } ?>