codebar-ag/laravel-postfinance-b2b

B2B Service integration for Laravel

v0.3 2023-11-29 11:17 UTC

This package is auto-updated.

Last update: 2024-10-12 23:20:50 UTC


README

Invoice download web services provided by PostFinance

๐Ÿšง Testing

Copy your own phpunit.xml-file.

cp phpunit.xml.dist phpunit.xml

Modify 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/pest

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

โœ๏ธ Contributing

Please see CONTRIBUTING for details.

POSTFINANCE_B2B_USERNAME=xxxxx POSTFINANCE_B2B_PASSWORD='XXXXX' POSTFINANCE_B2B_DEBUG=true composer test

Code Style

./vendor/bin/pint

๐Ÿง‘โ€๐Ÿ’ป Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

๐Ÿ™ Credits

๐ŸŽญ License

The MIT License (MIT). Please see License File for more information.