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 hashes)
Built Distribution
Close
Hashes for python_mope-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f5432f37a67a615aa839bf4afe176beae2077aec2180ebc13d8eb0b3b1a704 |
|
MD5 | b9d57d1a4e78ddd7f791751ef14b1f00 |
|
BLAKE2b-256 | a3d9336bf7a871aa4b01ef38a666846f29020af19e40fd00cb5abfbf73b1e477 |