TaxRates - plug-and-pay/sdk-php GitHub Wiki

Introduction

For how to handle the exceptions correctly, see Exceptions.

Index Tax Rates

The TaxRateService->get() method can extract all TaxRate models.

use PlugAndPay\Sdk\Enum\TaxRateIncludes;
use PlugAndPay\Sdk\Filters\TaxRateFilter;
use PlugAndPay\Sdk\Service\Client;
use PlugAndPay\Sdk\Service\TaxRateService;

$client  = new Client($token);
$service = new TaxRateService($client);

$filter   = (new TaxRateFilter())->country(CountryCode::NL);
$taxRates = $service->include()->get($filter);