Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Mar 3, 2025
1 parent 2eed9b4 commit 45b828d
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
uses: ramsey/composer-install@v3

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
run: ./vendor/bin/phpstan --error-format=github
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Store report artifacts
path: ./vendor/orchestra/testbench-core/laravel/storage/logs
path: ./vendor/orchestra/testbench-core/laravel/storage/logs
167 changes: 83 additions & 84 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,85 @@
{
"name": "codebar-ag/laravel-postfinance-b2b",
"description": "B2B Service integration for Laravel",
"keywords": [
"postfinance",
"b2b",
"laravel",
"codebar-ag",
"laravel-postfinance-b2b"
],
"homepage": "https://github.com/codebar-ag/laravel-postfinance-b2b",
"license": "MIT",
"authors": [
{
"name": "Sebastian Bürgin-Fix",
"email": "[email protected]",
"homepage": "https://www.codebar.ch",
"role": "Sofware-Engineer"
},
{
"name": "Rhys Lees",
"role": "Software-Engineer"
}
],
"require": {
"php": "8.2.*|8.3.*|8.4.*",
"ext-soap": "*",
"ext-xsl": "*",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^12.0",
"monolog/monolog": "^3.5",
"nyholm/psr7": "^1.8",
"php-http/logger-plugin": "^1.3",
"php-soap/psr18-wsse-middleware": "^2.3",
"phpro/soap-client": "^3.1",
"symfony/http-client": "^6.4",
"spatie/laravel-package-tools": "^1.19"
"name": "codebar-ag/laravel-postfinance-b2b",
"description": "B2B Service integration for Laravel",
"keywords": [
"postfinance",
"b2b",
"laravel",
"codebar-ag",
"laravel-postfinance-b2b"
],
"homepage": "https://github.com/codebar-ag/laravel-postfinance-b2b",
"license": "MIT",
"authors": [
{
"name": "Sebastian Bürgin-Fix",
"email": "[email protected]",
"homepage": "https://www.codebar.ch",
"role": "Sofware-Engineer"
},
"require-dev": {
"laravel/pint": "^1.21",
"larastan/larastan": "^v3.1",
"orchestra/testbench": "^10.0",
"pestphp/pest": "^3.7",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"spatie/laravel-ray": "^1.39"
},
"autoload": {
"psr-4": {
"CodebarAg\\PostfinanceB2B\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"CodebarAg\\PostfinanceB2B\\Tests\\": "tests"
}
},
"scripts": {
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": false,
"pestphp/pest-plugin": true,
"phpstan/extension-installer": true,
"php-http/discovery": true
}
},
"extra": {
"laravel": {
"providers": [
"CodebarAg\\PostfinanceB2B\\PostfinanceB2BServiceProvider"
],
"aliases": {
"PostfinanceB2B": "CodebarAg\\PostfinanceB2B\\Facades\\PostfinanceB2B"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
{
"name": "Rhys Lees",
"role": "Software-Engineer"
}
],
"require": {
"php": "8.2.*|8.3.*|8.4.*",
"ext-soap": "*",
"ext-xsl": "*",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^12.0",
"monolog/monolog": "^3.8",
"nyholm/psr7": "^1.8",
"php-http/logger-plugin": "^1.4.0",
"php-soap/psr18-wsse-middleware": "^2.5.0",
"phpro/soap-client": "^3.4.1",
"spatie/laravel-package-tools": "^1.19"
},
"require-dev": {
"laravel/pint": "^1.21",
"larastan/larastan": "^v3.1",
"orchestra/testbench": "^10.0",
"pestphp/pest": "^3.7",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"spatie/laravel-ray": "^1.39"
},
"autoload": {
"psr-4": {
"CodebarAg\\PostfinanceB2B\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"CodebarAg\\PostfinanceB2B\\Tests\\": "tests"
}
},
"scripts": {
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": false,
"pestphp/pest-plugin": true,
"phpstan/extension-installer": true,
"php-http/discovery": true
}
},
"extra": {
"laravel": {
"providers": [
"CodebarAg\\PostfinanceB2B\\PostfinanceB2BServiceProvider"
],
"aliases": {
"PostfinanceB2B": "CodebarAg\\PostfinanceB2B\\Facades\\PostfinanceB2B"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
4 changes: 2 additions & 2 deletions tests/Feature/DownloadFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
$config = config('postfinance-b2b');

$payerId = config('postfinance-b2b.tests.payer_id');
$billerId = '41101000000834484'; //config('postfinance-b2b.tests.biller_id');
$transactionId = '9360415238'; //config('postfinance-b2b.tests.transaction_id');
$billerId = '41101000000834484'; // config('postfinance-b2b.tests.biller_id');
$transactionId = '9360415238'; // config('postfinance-b2b.tests.transaction_id');
$fileType = config('postfinance-b2b.tests.file_type');

$client = PostfinanceClientFactory::factory($config);
Expand Down

0 comments on commit 45b828d

Please sign in to comment.