Skip to content

skeeran/yii2-fastbill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Yii2 Fastbill

This is a extension to communicate using Yii2 with Fastbill API
Works for Api: https://my.fastbill.com/api/1.0/api.php and https://automatic.fastbill.com/api/1.0/api.php

Fastbill (Digital invoicing for services and products)
Please check Fastbill-API Dokumentation to findout the structur for a request.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require skeeran/yii2-fastbill "*"

Configuring

'components' => [
    .....
    
        'fastbill' =>[
            'class' => 'skeeran\fastbill\Fastbill',
                'apiId' => '[email protected]',
                'apiKey' => '123ghtzsuuaszzzasuuas', 
                'apiUrl' => 'https://automatic.fastbill.com/api/1.0/api.php',
                'apiDebug' => false,
        ],
        
    ....
]

How to use ?

Request:

$article = Yii::$app->fastbill->request(array("SERVICE" => "article.get"));

Response: is an array

$article['RESPONSE']['ARTICLES'];

Array will look like this:

Array
(
    [0] => Array
        (
            [ARTICLE_NUMBER] => 1
            [TITLE] => Free
            [DESCRIPTION] => 
            [TAGS] => 
            [UNIT_PRICE] => 0.0000
            [SETUP_FEE] => 0.0000
            [ALLOW_MULTIPLE] => 0
            [IS_ADDON] => 0
            [CURRENCY_CODE] => EUR
            [VAT_PERCENT] => 19.00
            [SUBSCRIPTION_INTERVAL] => 1 month
            [SUBSCRIPTION_NUMBER_EVENTS] => 0
            [SUBSCRIPTION_TRIAL] => 0
            [SUBSCRIPTION_DURATION] => 0
            [SUBSCRIPTION_DURATION_FOLLOW] => 0
            [SUBSCRIPTION_CANCELLATION] => 0
            [RETURN_URL_SUCCESS] => 
            [RETURN_URL_CANCEL] => 
            [CHECKOUT_URL] => https://automatic.fastbill.com/purchase/.........
        )
)

This extenion is under development

Source

Digitalschmiede/fastbill

TBD

About

Yii2 Fastbill

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages