Skip to content

Commit

Permalink
Release 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wallee-deployment-user committed Jan 11, 2024
1 parent 68c4ae3 commit 3c34eb7
Show file tree
Hide file tree
Showing 140 changed files with 1,860 additions and 267 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
test:
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
runs-on: ubuntu-20.04

steps:
Expand All @@ -33,7 +33,9 @@ jobs:

- name: Install dependencies with ${{ matrix.python-version }}
run: |
wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
python -m pip install build --user
Expand All @@ -53,10 +55,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
python-version: '3.12'
- name: Install dependencies with ${{ matrix.python-version }}
run: |
wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
python -m pip install build --user
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 wallee AG
Copyright 2024 wallee AG

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
[![Build Status](https://travis-ci.org/wallee-payment/python-sdk.svg?branch=master)](https://travis-ci.org/wallee-payment/python-sdk)

# wallee Python Library
# wallee Python SDK

The wallee Python library wraps around the wallee API. This library facilitates your interaction with various services such as transactions, accounts, and subscriptions.
Python SDK to access wallee web services API.

## Documentation
Library facilitates your interaction with various services such as transactions, accounts, and subscriptions.

## API documentation

[wallee Web Service API](https://app-wallee.com/doc/api/web-service)

## Requirements

- Python 3.5+
- Python 3.7+

## Installation

### pip install (recommended)
### pip3 install (recommended)
```sh
pip install --upgrade wallee
pip3 install --upgrade wallee
```

### pip install from source via github
### pip3 install from source via github

```sh
pip install git+http://github.com/wallee-payment/python-sdk.git
pip3 install git+http://github.com/wallee-payment/python-sdk.git
```
(you may need to run `pip` with root permission: `sudo pip install git+http://github.com/wallee-payment/python-sdk.git` )
(you may need to run `pip3` with root permission: `sudo pip3 install git+http://github.com/wallee-payment/python-sdk.git` )

### install from source via Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
pip3 install setuptools

python setup.py install
```
(or `sudo python setup.py install` to install the package for all users)
Expand Down
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
certifi >= 14.05.14
six >= 1.10
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.15.1
python_dateutil >= 2.8.2
setuptools >= 68.0.0
urllib3 >= 2.0.7
cryptography >= 2.0
19 changes: 8 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
long_description = fh.read()

NAME = "wallee"
VERSION = "4.0.0"
VERSION = "4.1.0"

REQUIRES = [
"certifi>=2017.4.17",
"python-dateutil>=2.1",
"six>=1.10",
"urllib3>=1.23"
"certifi >= 14.05.14",
"six >= 1.10",
"python_dateutil >= 2.8.2",
"setuptools >= 68.0.0",
"urllib3 >= 2.0.7",
"cryptography >= 2.0"
]


Expand All @@ -35,12 +37,7 @@
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Office/Business :: Financial :: Point-Of-Sale',
],
python_requires='>=3.5',
python_requires='>=3.7',
)
40 changes: 40 additions & 0 deletions test/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
from wallee import Configuration

from wallee.models import (
LineItem,
LineItemType,
TransactionCreate,
AuthenticatedCardDataCreate,
)

API_CONFIG = Configuration(
user_id=512,
api_secret="FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=",
request_timeout=30,
)

SPACE_ID = 405

def get_transaction_create():
return TransactionCreate(
line_items=[
LineItem(
name="Blue T-Shirt",
unique_id="5412",
sku="blue-t-shirt-123",
quantity=1,
amount_including_tax=3.50,
type=LineItemType.PRODUCT,
)
],
auto_confirmation_enabled=True,
currency="CHF",
)


FAKE_CARD_DATA = AuthenticatedCardDataCreate(
primary_account_number="4111111111111111", expiry_date="2026-12"
)

TEST_CARD_PAYMENT_METHOD_CONFIGURATION_ID = 1352
TEST_CUSTOMER_ID = 7311742
Loading

0 comments on commit 3c34eb7

Please sign in to comment.