https://github.com/everhide/wallet-one-payments
Form wrapper for Wallet One Payments.
https://github.com/everhide/wallet-one-payments
acs payments
Last synced: about 1 month ago
JSON representation
Form wrapper for Wallet One Payments.
- Host: GitHub
- URL: https://github.com/everhide/wallet-one-payments
- Owner: everhide
- License: mit
- Created: 2021-04-15T23:17:13.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-17T14:25:27.000Z (about 5 years ago)
- Last Synced: 2025-07-30T07:07:39.649Z (11 months ago)
- Topics: acs, payments
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Wallet One payments
Python 3 package for processing Wallet One payments.
Wallet one site: https://www.walletone.com
##### Install
```
pip install wallet-one
```
##### Usage
```python
from wallet_one import Payment
payment = Payment(
merchant_id='195751850197',
secret='4436657a5c785f354b76314a6c4a666e6832695e58356a5c475c60',
amount=1000.00,
description='Your payment description',
url_success='https://your.url/success',
url_fail='https://your.url/fail',
)
>>> payment.form
{
'WMI_MERCHANT_ID': '195751850197',
'WMI_PAYMENT_AMOUNT': '1000.0',
'WMI_CURRENCY_ID': '643',
'WMI_DESCRIPTION': 'Your payment description',
'WMI_SUCCESS_URL': 'https://your.url/success',
'WMI_FAIL_URL': 'https://your.url/fail',
'WMI_SIGNATURE': 'b1VngBA5Y3aiWlPLPEdG9w==',
}
>>> payment.signature
'b1VngBA5Y3aiWlPLPEdG9w=='
```
##### Overloads
```python
payment = Payment(
# ... required fields
currency=840, # optional currency
override_fields={
'WMI_PAYMENT_NO': 'NLE-001',
},
)
```