Skip to content

Commit e606c4a

Browse files
authored
Merge pull request #5 from buckaroo-it/develop
Release 0.1.0
2 parents 3c9e7fa + e55bb4b commit e606c4a

331 files changed

Lines changed: 24052 additions & 2450 deletions

File tree

Some content is hidden

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

.env.example

100755100644
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
BPE_WEBSITE="Example.com"
2-
BPE_WEBSITE_KEY="KEY"
3-
BPE_SECRET_KEY="SECRET"
4-
BPE_MODE="test"
5-
BPE_DEBUG=true
6-
BPE_REPORT_ERROR=true
1+
# Buckaroo API Credentials
2+
BUCKAROO_STORE_KEY=your_store_key_here
3+
BUCKAROO_SECRET_KEY=your_secret_key_here
74

8-
BPE_EXAMPLE_BASE_URL="https://example.com/buckaroo/"
9-
BPE_EXAMPLE_RETURN_URL="${BPE_EXAMPLE_BASE_URL}return"
10-
BPE_EXAMPLE_PUSH_URL="${BPE_EXAMPLE_BASE_URL}push"
11-
BPE_EXAMPLE_IP="127.0.0.1"
12-
BPE_EXAMPLE_CURRENCY_CODE="EUR"
5+
# Logging Configuration (optional)
6+
BUCKAROO_LOG_LEVEL=DEBUG
7+
BUCKAROO_LOG_DESTINATION=both
8+
BUCKAROO_LOG_FILE=buckaroo_sdk.log
9+
BUCKAROO_LOG_MASK_SENSITIVE=true
10+
11+
# Copy this file to .env and fill in your actual credentials:
12+
# cp .env.example .env

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Normalize line endings to LF on checkout + commit regardless of host platform.
2+
* text=auto eol=lf
3+
*.py text eol=lf

.github/workflows/codestyle.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Code Style
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: codestyle-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
ruff:
12+
runs-on: ubuntu-latest
13+
14+
name: Ruff
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.13"
24+
cache: pip
25+
26+
- name: Install Ruff
27+
run: pip install ruff
28+
29+
- name: Run Ruff check
30+
run: ruff check .
31+
32+
- name: Run Ruff format check
33+
run: ruff format --check .

.github/workflows/lint.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
workflow_dispatch:
7+
inputs:
8+
target:
9+
description: Target repository
10+
required: true
11+
default: testpypi
12+
type: choice
13+
options:
14+
- testpypi
15+
- pypi
16+
17+
concurrency:
18+
group: publish-${{ github.ref }}
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
name: Build distributions
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: "3.13"
31+
cache: pip
32+
33+
- name: Install build tooling
34+
run: pip install --upgrade build twine
35+
36+
- name: Build sdist + wheel
37+
run: python -m build
38+
39+
- name: Verify metadata
40+
run: twine check dist/*
41+
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: dist
46+
path: dist/
47+
if-no-files-found: error
48+
49+
publish-pypi:
50+
name: Publish to PyPI
51+
needs: build
52+
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.target == 'pypi')
53+
runs-on: ubuntu-latest
54+
permissions:
55+
id-token: write
56+
steps:
57+
- uses: actions/download-artifact@v4
58+
with:
59+
name: dist
60+
path: dist/
61+
62+
- uses: pypa/gh-action-pypi-publish@release/v1
63+
64+
publish-testpypi:
65+
name: Publish to TestPyPI
66+
needs: build
67+
if: github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi'
68+
runs-on: ubuntu-latest
69+
permissions:
70+
id-token: write
71+
steps:
72+
- uses: actions/download-artifact@v4
73+
with:
74+
name: dist
75+
path: dist/
76+
77+
- uses: pypa/gh-action-pypi-publish@release/v1
78+
with:
79+
repository-url: https://test.pypi.org/legacy/

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: tests-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18+
19+
name: Python ${{ matrix.python-version }}
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
cache: pip
30+
31+
- name: Install dependencies
32+
run: |
33+
pip install -r requirements-dev.txt
34+
pip install -e .
35+
36+
- name: Run tests
37+
run: pytest --cov=buckaroo --cov-report=term-missing

.gitignore

100755100644
Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
Dockerfile
2-
docker-compose.yml
3-
.mypy_cache/
4-
.venv/
5-
*__pycache__/
1+
# build artifacts
2+
/build
3+
/dist
4+
/*.egg-info
5+
*.egg-info/
6+
/.eggs
7+
8+
# test and local dev artifacts
9+
/.pytest_cache
10+
/.coverage
11+
htmlcov/
12+
.tox/
13+
/.idea
14+
.DS_Store
15+
__pycache__/
16+
*.pyc
17+
.env
18+
19+
*.log

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
---
6+
7+
## [Released]
8+
9+
## [0.1.0]
10+
- BA-510 Initial setup
11+
- BTI-9 Core SDK setup
12+
- BTI-10 Buckaroo API integration
13+
- BTI-11 Specific payment model
14+
- BTI-13 Documentation
15+
- BTI-14 Webhook / PUSH handler
16+
- BTI-15 Unit testing
17+
- BTI-841 Add a test suite
18+
- BA-992 Add payment method: Alipay
19+
- BA-993 Add payment method: Apple Pay
20+
- BA-994 Add payment method: Bancontact
21+
- BA-995 Add payment method: Belfius
22+
- BA-996 Add payment method: Billink
23+
- BA-999 Add payment method: Bizum
24+
- BA-1000 Add payment method: Blik
25+
- BA-1001 Add payment method: Buckaroo Voucher
26+
- BA-1002 Add payment method: Click to Pay
27+
- BA-1003 Add payment method: Creditcards
28+
- BA-1004 Add payment method: EPS
29+
- BA-1005 Add payment method: Giftcards
30+
- BA-1006 Add payment method: goSettle
31+
- BA-1007 Add payment method: Google Pay
32+
- BA-1008 Add payment method: External Payment
33+
- BA-1009 Add payment method: iDEAL | Wero
34+
- BA-1010 Add payment method: iDEAL | Wero QR
35+
- BA-1011 Add payment method: In3
36+
- BA-1012 Add payment method: KBC
37+
- BA-1013 Add payment method: Klarna KP
38+
- BA-1014 Add payment method: Klarna
39+
- BA-1015 Add payment method: MB Way
40+
- BA-1016 Add payment method: Multibanco
41+
- BA-1017 Add payment method: Pay by Bank
42+
- BA-1018 Add payment method: Payconiq
43+
- BA-1019 Add payment method: PayPal
44+
- BA-1020 Add payment method: Przelewy24
45+
- BA-1021 Add payment method: Riverty
46+
- BA-1022 Add payment method: Sepa Direct Debit
47+
- BA-1023 Add payment method: Swish
48+
- BA-1024 Add payment method: Transfer
49+
- BA-1025 Add payment method: Trustly
50+
- BA-1026 Add payment method: Twint
51+
- BA-1027 Add payment method: Wero
52+
- BA-1028 Add payment method: WeChat Pay
53+
- BA-1029 Add payment method: Vouchers

CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contribution Guidelines
2+
3+
### Repository setup:
4+
- Fork the repository to your account
5+
- more details about [how to fork a repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) can be found [here](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo):
6+
7+
### Making changes:
8+
- create a branch from develop branch
9+
- name of the branch shoul be something like: `feature/GITHUB-ISSUE-ID-slug` (eg: `feature/50-configprovider-update`)
10+
- including unit tests is encouraged
11+
12+
### Pull Request:
13+
- open the PR to develop branch
14+
- if there is no issue referenced, add a description about the problem and the way it is being solved
15+
- Allow edits from maintainers
16+
17+
18+
### Contribution to refactoring:
19+
- include unit tests
20+
- open the Pull Request
21+
- check that git workflows checks have passed

LICENSE renamed to LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Buckaroo
3+
Copyright (c) 2025 Buckaroo
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)