PHP code example of pandagrouppl / subuno-php-api

1. Go to this page and download the library: Download pandagrouppl/subuno-php-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pandagrouppl / subuno-php-api example snippets


class TestConfig implements \PandaGroup\SubunoApi\Contract\ConfigInterface

$config = new TestConfig();
$client = new \PandaGroup\SubunoApi\Client($config)

$client->execute(['t_id' => 213]);

\PandaGroup\SubunoApi\DataObject\BillingInformation
\PandaGroup\SubunoApi\DataObject\OrderInformation
\PandaGroup\SubunoApi\DataObject\ShippingInformation

/** @var \PandaGroup\SubunoApi\DataObject\Factory\Factory $factory*/
$orderInfo = $factory->create(\PandaGroup\SubunoApi\DataObject\OrderInformation::class, ['transactionId' => 123]);

/** @var \PandaGroup\SubunoApi\Request\Builder\QueryBuilder $queryBuilder */
$queryBuilder->add($orderInfo)
$query = $queryBuilder->build()

$response = $client->execute($query);