Python Mopé
Client library for Mopé by Hakrinbank
Token acquisition and API Docs
- API Docs
- Instructions for acquiring a token
Requirements
- Python >= 3.7,<=3.11
- requests (currently not sure what the min required version is)
- Mopé API Tokens
Getting Started
First, you can install from PyPi by running pip install python-mope
Example usage:
from mope import Mope
mope = Mope(token='test_123')
mope.shop.get_payment_request(payment_id='123')
Resources
shop
Methods
shop.create_payment_request
| Argument | Type | Required |
|---|---|---|
| amount | int | yes |
| description | string | yes |
| order_id | string | yes |
| currency | enum (USD, SRD, EU) | yes |
| redirect_url | string | yes |
return type: mope.models.payments.CreatePaymentResponse
shop.get_payment_request
| Argument | Type | Required |
|---|---|---|
| payment_id | string | yes |
return type: mope.models.payments.PaymentRequest
Metadata
Release files for python-mope 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-mope-0.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_mope-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / python-mope-0.1.0.tar.gz
| Download URL | python-mope-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
682ccfb326f496e72004a2bd738b607fc9240c8ead5319aa99f8efa49cc04883
|
|
BLAKE2b-256 checksum How to use checksums |
8a4e067a909036e5933c4f7a95f99ba746efb485db481e279892870bf54fd834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|
Release files / python_mope-0.1.0-py3-none-any.whl
| Download URL | python_mope-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52f5432f37a67a615aa839bf4afe176beae2077aec2180ebc13d8eb0b3b1a704
|
|
BLAKE2b-256 checksum How to use checksums |
a3d9336bf7a871aa4b01ef38a666846f29020af19e40fd00cb5abfbf73b1e477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|