uawdijnntqw1x1x1
IP : 216.73.216.46
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
modules
/
assets
/
..
/
controllers
/
CartController.php
/
/
<?php /** * Community module for Craft CMS 3.x * * Community Module * * @link https://www.convergine.com/ * @copyright Copyright (c) 2021 Convergine */ namespace modules\controllers; use craft\web\Controller; class CartController extends Controller { // Protected Properties // ========================================================================= /** * @var bool|array Allows anonymous access to this controller's actions. * The actions must be in 'kebab-case' * @access protected */ protected array|int|bool $allowAnonymous = true; public function actionUpload(){ \Craft::dump($_FILES); \Craft::dump($_REQUEST); exit(); } public function actionGetToken() { $apiToken = 'd9s65b28phtZxHH2GW4K76Ww3'; $client = new \GuzzleHttp\Client(); $response = $client->request( 'POST', 'https://api.myhelcim.com/v2/helcim-pay/initialize', [ 'body' => '{"paymentType":"purchase","amount":10,"currency":"CAD","test":"true","customerCode":"CST1158"}', 'headers' => [ /*'X-API-TOKEN' => '2500436249',*/ 'accept' => 'application/json', 'api-token' => $apiToken, 'content-type' => 'application/json', ], ] ); echo $response->getBody(); return ''; } }
/srv/users/craft4/apps/craft4-newsite-space/modules/assets/../controllers/CartController.php