Skip to content

Commit 0a390f4

Browse files
committed
feat: init
0 parents  commit 0a390f4

File tree

107 files changed

+33713
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+33713
-0
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5
8+
- package-ecosystem: "composer"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
open-pull-requests-limit: 5
13+
- package-ecosystem: "gomod"
14+
directory: "/codegen"
15+
schedule:
16+
interval: "weekly"
17+
open-pull-requests-limit: 5

.github/workflows/ci.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: CI
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch: {}
8+
push:
9+
branches:
10+
- master
11+
tags:
12+
- v[0-9]+.[0-9]+.[0-9]+*
13+
pull_request:
14+
branches:
15+
- master
16+
17+
jobs:
18+
lint:
19+
name: Lint
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
23+
24+
- name: Set up PHP
25+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2.31.0
26+
with:
27+
php-version: '8.3'
28+
extensions: intl
29+
coverage: none
30+
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-progress --no-interaction
33+
34+
- name: Lint
35+
run: make fmtcheck
36+
37+
tests:
38+
name: Tests (PHP ${{ matrix.php }})
39+
runs-on: ubuntu-latest
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
php: ['7.4', '8.2']
44+
steps:
45+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
46+
47+
- name: Set up PHP
48+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2.35.5
49+
with:
50+
php-version: ${{ matrix.php }}
51+
coverage: none
52+
tools: composer:v2
53+
54+
- name: Install dependencies
55+
run: composer install --no-interaction --prefer-dist
56+
57+
- name: Run tests
58+
run: composer test
59+
60+
release-please:
61+
name: Prepare release
62+
runs-on: ubuntu-latest
63+
if: github.ref == 'refs/heads/master'
64+
permissions:
65+
contents: write
66+
pull-requests: write
67+
steps:
68+
- name: Checkout code
69+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
70+
71+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
72+
with:
73+
token: ${{ secrets.GITHUB_TOKEN }}
74+
target-branch: ${{ github.ref_name }}

.github/workflows/codegen.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Codegen CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "codegen/**"
9+
- ".github/workflows/codegen.yaml"
10+
pull_request:
11+
branches:
12+
- master
13+
paths:
14+
- "codegen/**"
15+
- ".github/workflows/codegen.yaml"
16+
17+
permissions:
18+
contents: read
19+
20+
defaults:
21+
run:
22+
working-directory: ./codegen
23+
24+
env:
25+
GOLANGCI_LINT_VERSION: v2.1.5
26+
27+
jobs:
28+
lint:
29+
name: Lint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
33+
34+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
35+
with:
36+
go-version-file: './codegen/go.mod'
37+
38+
- name: golangci-lint
39+
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
40+
with:
41+
version: ${{ env.GOLANGCI_LINT_VERSION }}
42+
working-directory: ./codegen
43+
44+
test:
45+
name: Test
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
49+
50+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
51+
with:
52+
go-version-file: './codegen/go.mod'
53+
54+
- name: Run tests
55+
run: go test ./...
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Github Actions
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/**'
7+
8+
defaults:
9+
run:
10+
working-directory: ./.github
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
actionlint:
17+
name: Lint
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
21+
with:
22+
persist-credentials: false
23+
sparse-checkout: |
24+
.github
25+
26+
- uses: reviewdog/action-actionlint@f00ad0691526c10be4021a91b2510f0a769b14d0 # v1.68.0
27+
with:
28+
filter_mode: nofilter
29+
fail_on_error: true
30+
reporter: github-pr-check

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
composer.phar
2+
composer.lock
3+
/vendor/
4+
**/coverage
5+
.php_cs
6+
.php_cs.cache
7+
.php-cs-fixer.cache
8+
.phpunit.result.cache
9+
.envrc

.php-cs-fixer.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__);
5+
6+
$config = new PhpCsFixer\Config();
7+
$config->setRules([
8+
'@PSR2' => true,
9+
'no_unused_imports' => true,
10+
'no_trailing_whitespace' => true,
11+
'single_blank_line_at_eof' => true,
12+
'encoding' => true,
13+
'full_opening_tag' => true,
14+
'no_closing_tag' => true,
15+
'concat_space' => ['spacing' => 'one'],
16+
17+
// PHP 5.6 compatibility
18+
'visibility_required' => [
19+
'elements' => [
20+
'method',
21+
'property',
22+
],
23+
],
24+
]);
25+
$config->setFinder($finder);
26+
return $config;

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.4.0"
3+
}

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changelog
2+
3+
## [1.4.0](https://github.com/sumup/sumup-ecom-php-sdk/compare/1.3.0...v1.4.0) (2025-11-12)
4+
5+
6+
### Features
7+
8+
* add support for api keys ([#56](https://github.com/sumup/sumup-ecom-php-sdk/issues/56)) ([f5ef00a](https://github.com/sumup/sumup-ecom-php-sdk/commit/f5ef00acb690e519f1ce8b40e2fbfd1438e5b0b4))
9+
* add user-agent with SDK version string ([#69](https://github.com/sumup/sumup-ecom-php-sdk/issues/69)) ([9143957](https://github.com/sumup/sumup-ecom-php-sdk/commit/91439574f8e9e7154ba6a5a930130441b23fa3dd))
10+
* **cd:** add release please setup ([#71](https://github.com/sumup/sumup-ecom-php-sdk/issues/71)) ([f681dd4](https://github.com/sumup/sumup-ecom-php-sdk/commit/f681dd4aa5d448ae02f287c9f14cc64e47d900c9))
11+
* setup tests ([#68](https://github.com/sumup/sumup-ecom-php-sdk/issues/68)) ([59922b6](https://github.com/sumup/sumup-ecom-php-sdk/commit/59922b60e9b94b8cebe28d8af6f87b14c4f5c74e))
12+
13+
14+
### Bug Fixes
15+
16+
* 40: Separator has to be first ([#41](https://github.com/sumup/sumup-ecom-php-sdk/issues/41)) ([fb5f538](https://github.com/sumup/sumup-ecom-php-sdk/commit/fb5f538eaa87549cb6f8f15c38bc4b02f57e0db1))
17+
* bundle tls certificates for platforms without system-wide trust store ([#66](https://github.com/sumup/sumup-ecom-php-sdk/issues/66)) ([3573738](https://github.com/sumup/sumup-ecom-php-sdk/commit/357373873ceb79440ec15c346cb770cd869629fa))
18+
* **utils:** fail gracefully if composer.json can't be parsed ([#65](https://github.com/sumup/sumup-ecom-php-sdk/issues/65)) ([3324d69](https://github.com/sumup/sumup-ecom-php-sdk/commit/3324d695830a3687603c9368dcbb24ea2c57f8a9))
19+
* version in composer.json ([#70](https://github.com/sumup/sumup-ecom-php-sdk/issues/70)) ([524b21b](https://github.com/sumup/sumup-ecom-php-sdk/commit/524b21b0ef58a3f4562df1e7695bea62761966e5))
20+
21+
22+
### Miscellaneous Chores
23+
24+
* **checkouts:** replace pay_to_email with the use of merchant_code ([#58](https://github.com/sumup/sumup-ecom-php-sdk/issues/58)) ([7c6ca69](https://github.com/sumup/sumup-ecom-php-sdk/commit/7c6ca695661cb93b9660c36687f46a5d165014c2))
25+
* deprecate pay_to_email ([#67](https://github.com/sumup/sumup-ecom-php-sdk/issues/67)) ([f279890](https://github.com/sumup/sumup-ecom-php-sdk/commit/f279890c795368c7e3be45930d89a513c1f1ade8))
26+
* **deps:** bump actions/checkout from 4.2.2 to 5.0.0 ([#59](https://github.com/sumup/sumup-ecom-php-sdk/issues/59)) ([a7b4a97](https://github.com/sumup/sumup-ecom-php-sdk/commit/a7b4a978f405a6f422c6fba7a9badbfd6c2527c3))
27+
* **deps:** bump reviewdog/action-actionlint from 1.65.0 to 1.65.2 ([#54](https://github.com/sumup/sumup-ecom-php-sdk/issues/54)) ([2af99fe](https://github.com/sumup/sumup-ecom-php-sdk/commit/2af99fec671287fc3e921c940fe70ded02b06691))
28+
* **deps:** bump reviewdog/action-actionlint from 1.65.2 to 1.68.0 ([#63](https://github.com/sumup/sumup-ecom-php-sdk/issues/63)) ([6291a02](https://github.com/sumup/sumup-ecom-php-sdk/commit/6291a02d7ed2096cb4f5b6e60b4a21400b8bd50e))
29+
* improve error parsing in client ([#64](https://github.com/sumup/sumup-ecom-php-sdk/issues/64)) ([790a68c](https://github.com/sumup/sumup-ecom-php-sdk/commit/790a68c89b3843f73763836893a11a40d169013a))

0 commit comments

Comments
 (0)