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.6,<=3.10
- 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.6.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for python_mope-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e1ce81152f1834f4cffa1b7a67db9beaa2fa2bc26cb2b976b598503d6dc1dc |
|
MD5 | d2916d98ef819239e9e7840b7db8b04a |
|
BLAKE2b-256 | f8836fbdb1cc6e70ea8ee6d3cf72a6aa9b5569ec3ff016f20408a895345a93fa |