A client library for interacting with Mopé Web Shop APIs
Project description
Python Mopé [under development]
Client library for Mopé by Hakrinbank
Requirements
- Python >= 3.7,<3.8
- 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.0.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for python_mope-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feadd3bec8c86c2cbd6391416df3f33b9c8d4d6c21f6c890cdfe7ad7a91d45be |
|
MD5 | 68c212a275f73b7bfc36a9ba6f87858f |
|
BLAKE2b-256 | 480308f5ae8cc978cd8cc575a6754832b6730868e8140bb2ab84881b28904650 |