Files
redline.com.pl/modules/inpostship/setCourier.php
2024-11-11 18:46:54 +01:00

25 lines
707 B
PHP

<?php
/**
* NOTICE OF LICENSE
*
* This file is licenced under the Software License Agreement.
* With the purchase or the installation of the software in your application
* you accept the licence agreement.
*
* You must not modify, adapt or create derivative works of this source code
*
* @author PrestaHelp.com
* @copyright 2019 PrestaHelp
* @license LICENSE.txt
*/
header("Access-Control-Allow-Origin: *");
require_once __DIR__.'/../../config/config.inc.php';
require_once __DIR__.'/inpostship.php';
$id_cart = (int)$_REQUEST['id_cart'];
$courier = (int)$_REQUEST['id_carrier'];
$inpost = new inpostship();
echo json_encode($inpost->setCourier((int)$id_cart, (int)$courier));
exit();