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.6,<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.created_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.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for python_mope-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec24912fd313ce8106b1d23768b0aa39258b03211923a5396921d0b926e9e638 |
|
MD5 | 96b94872cda4e8e012bf883503be585d |
|
BLAKE2b-256 | ca6bc162016a6e7a666df859cf6fe3c06558dad08248a4a9b0088a34f4479837 |