A client library for interacting with the Mopé Web Shop API
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-mope-0.1.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file python-mope-0.1.0.tar.gz
.
File metadata
- Download URL: python-mope-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 682ccfb326f496e72004a2bd738b607fc9240c8ead5319aa99f8efa49cc04883 |
|
MD5 | f06cafb0fc1037ddaa971339d60e202a |
|
BLAKE2b-256 | 8a4e067a909036e5933c4f7a95f99ba746efb485db481e279892870bf54fd834 |
File details
Details for the file python_mope-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: python_mope-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f5432f37a67a615aa839bf4afe176beae2077aec2180ebc13d8eb0b3b1a704 |
|
MD5 | b9d57d1a4e78ddd7f791751ef14b1f00 |
|
BLAKE2b-256 | a3d9336bf7a871aa4b01ef38a666846f29020af19e40fd00cb5abfbf73b1e477 |