File "class-kp-get-session.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/get/class-kp-get-session.php
File size: 614 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Class for the request to create a session.
*
* @package WC_Klarna_Payments/Classes/Requests/GET
*/
defined( 'ABSPATH' ) || exit;
/**
* KP_Get_Session class.
*/
class KP_Get_Session extends KP_Requests_Get {
/**
* Class constructor.
*
* @param array $arguments The request arguments.
*/
public function __construct( $arguments ) {
parent::__construct( $arguments );
$session_id = $arguments['session_id'];
$this->log_title = 'Get session';
$this->request_filter = 'wc_klarna_payments_get_session_args';
$this->endpoint = "payments/v1/sessions/$session_id";
}
}