## DOWNLOAD PLUGIN

Open page https://github.com/comfino/WooCommerce/releases and download the latest plugin.

## INSTALLATION

To install the module, please go to `"Plugins"` tab and then click `"Add new -> Upload plugin"` button, then panel with `"Module file"` input should appear. In this input choose module's file and click `"Send module button"`. If the module was uploaded, then it should be visible on modules list. Then you should just choose the module and click `"Install"` button.

![Installation](images/en/instalation-1.png "Installation")
![Installation](images/en/instalation-2.png "Installation")
![Installation](images/en/instalation-3.png "Installation")

## CONFIGURATION

For the module correct work, activation and configuration is required. You can do this by click `"Settings"` in module information panel. There are a couple of important field that should be filled: `"Sandbox/Production Key"`.

* Title - this is text that will be showing near by payment option. Default value is `"Comfino"`

![Configuration](images/en/configuration-1.png "Configuration")
![Configuration](images/en/configuration-2.png "Configuration")

## ATTENTION

* For the module correct work, phone number field in checkout must be set required.
* HTTP's PUT Method should be enabled on the server.
* Required data in the Comfino plugin:
    * Customer:
        * first name - 2-63 characters
        * last name - 2-63 characters
        * email address - valid email address
        * valid polish mobile phone number (expected format: xxxxxxxxx, xxx xxx xxx, +48 xxxxxxxxx).
    * Card:
        * total amount
        * list of products
            * name
            * quantity
            * price
    * Address:
        * street
        * building number
        * apartment number
        * postal code
        * city
        * country code

## STATUS NOTIFICATIONS:

Change order status to complete. The result is invoice and shipment products.

* ACCEPTED
* WAITING_FOR_PAIMENT
* PAID

## FLOW

![Flow](images/comfino-flow.png "Flow")
