This package was developed to give you a quick start to communicate with the PostFinance B2B REST API.
PostFinance B2B is a digital interface for all your invoices where you can send and receive your invoices electronically.
| Package | PHP | Laravel |
|---|---|---|
| v12.0.0 | ^8.2 - ^8.4 | 12.x |
| v11.0.0 | ^8.2 - ^8.3 | 11.x |
You can install the package via composer:
composer require codebar-ag/laravel-postfinance-b2bAdd the following environment variables to your .env file:
POSTFINANCE_B2B_USERNAME=
POSTFINANCE_B2B_PASSWORD=Invoice download web services provided by PostFinance
Copy your own phpunit.xml-file.
cp phpunit.xml.dist phpunit.xmlModify environment variables in the phpunit.xml-file:
<env name="POSTFINANCE_B2B_WSDL" value="wds"/>
<env name="POSTFINANCE_B2B_CACHE_WSDL" value="wsdl"/>
<env name="POSTFINANCE_B2B_USERNAME" value="username"/>
<env name="POSTFINANCE_B2B_PASSWORD" value="password"/>
<env name="POSTFINANCE_B2B_DEBUG" value="debug"/>
<env name="POSTFINANCE_B2B_TESTS_PAYER_ID" value=""/>
<env name="POSTFINANCE_B2B_TESTS_BILLER_ID" value=""/>
<env name="POSTFINANCE_B2B_TESTS_TRANSACTION_ID" value=""/>
<env name="POSTFINANCE_B2B_TESTS_FILE_TYPE" value="RGXMLSIG"/>Run the tests:
./vendor/bin/pestPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
POSTFINANCE_B2B_USERNAME=xxxxx POSTFINANCE_B2B_PASSWORD='XXXXX' POSTFINANCE_B2B_DEBUG=true composer test./vendor/bin/pintPlease review our security policy on how to report security vulnerabilities.
- Sebastian Bürgin-Fix
- All Contributors
- Skeleton Repository from Spatie
- Laravel Package Training from Spatie
The MIT License (MIT). Please see License File for more information.
