Private
Public Access
1
0

Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace {{ namespace }};
use App\Classes\Extension\Gateway;
use App\Models\Invoice;
class {{ class }} extends Gateway
{
/**
* Get all the configuration for the extension
*
* @param array $values
* @return array
*/
public function getConfig($values = [])
{
return [];
}
/**
* Return a view or a url to redirect to
*
* @param Invoice $invoice
* @param float $total
* @return string
*/
public function pay(Invoice $invoice, $total)
{
return '';
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace {{ namespace }};
use App\Classes\Extension\Extension;
class {{ class }} extends Extension
{
/**
* Get all the configuration for the extension
*
* @param array $values
* @return array
*/
public function getConfig($values = [])
{
return [];
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace {{ namespace }};
use App\Classes\Extension\Server;
use App\Models\Service;
class {{ class }} extends Server
{
/**
* Get all the configuration for the extension
*
* @param array $values
* @return array
*/
public function getConfig($values = []): array
{
return [];
}
/**
* Get product config
*
* @param array $values
* @return array
*/
public function getProductConfig($values = []): array
{
return [];
}
/**
* Check if currenct configuration is valid
*
* @return bool|string
*/
public function testConfig(): bool|string
{
return true;
}
/**
* Create a server for the service.
*
* @param Service $service The service that is being created.
* @param array $settings The settings that are provided on the product from `getProductConfig`.
* @param array $properties Custom properties created by the admin and values coming from `getCheckoutConfig`.
*/
public function createServer(Service $service, $settings, $properties)
{
return false;
}
/**
* Suspend a server
*
* @param Service $service
* @param array $settings (product settings)
* @param array $properties (checkout options)
* @return bool
*/
public function suspendServer(Service $service, $settings, $properties)
{
return false;
}
/**
* Unsuspend a server
*
* @param Service $service
* @param array $settings (product settings)
* @param array $properties (checkout options)
* @return bool
*/
public function unsuspendServer(Service $service, $settings, $properties)
{
return false;
}
/**
* Terminate a server
*
* @param Service $service
* @param array $settings (product settings)
* @param array $properties (checkout options)
* @return bool
*/
public function terminateServer(Service $service, $settings, $properties)
{
return false;
}
}