PHPackages                             robier/sylius-croatian-fiscalization-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. robier/sylius-croatian-fiscalization-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

robier/sylius-croatian-fiscalization-plugin
===========================================

Plugin allowing to send data to Croatian FINA

017PHP

Since Oct 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/robier/sylius-croatian-fiscalization-plugin)[ Packagist](https://packagist.org/packages/robier/sylius-croatian-fiscalization-plugin)[ RSS](/packages/robier-sylius-croatian-fiscalization-plugin/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Croatian fiscalization plugin
=============================

[](#croatian-fiscalization-plugin)

**Note**: This package is still under development

Enables your shop to communicate with Croatian FINA when a customer makes a purchase.

You do not need to send data to FINA if a customer makes offline purchase (bank transfer or paying on delivery). This is configurable via plugin configuration.

Every order will get its bill sequence, bill unique identifier and issuer security code according to FINA standards. You will see in order detail view (inside admin) those data. If for any reason those data could not be fiscalized, you will see log of errors that happened. You try to resend data by clicking the button under error logs.

Configuration
-------------

[](#configuration)

Before setting up configurations you will need to have 3 things:

- root certificate
- personal certificate
- personal certificate passphrase

You will get those things from FINA. You can find more info [here](https://github.com/robier/fiscalization).

```
robier_sylius_croatian_fiscalization:
  environment: demo # 'demo' or 'production'
  disable_on_payment_codes:
    - bank_transfer
    - cash_on_delivery # depends on your configuration, by default it will be applied to all payment types
  resending:
    max_attempts: 3
  certificate:
    demo:
      root_path: '%kernel.project_dir%/var/certificates/demo/root.txt'
      private_path: '%kernel.project_dir%/var/certificates/demo/FISKAL_1.p12'
      passphrase: '**********'
    production:
      root_path: '%kernel.project_dir%/var/certificates/production/root.txt'
      private_path: '%kernel.project_dir%/var/certificates/production/FISKAL_1.p12'
      passphrase: '**********'
  company:
    oib: 76915349123
    inside_tax_registry: true
  operator:
    oib: 28841868149 # if null (~), company.oib will be used instead
```

Installation
------------

[](#installation)

Install application via composer:

```
composer require robier/sylius-croatian-fiscalization-plugin
```

Enable bundle in your sylius instance:

```
