A client library for interacting with Mopé Web Shop APIs
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.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.5.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for python_mope-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74bbd657d9802bb20731d32327377b90d02911a60d708689a4592590052a7943 |
|
MD5 | a297af0abb9c8827bc12527b4422a5ea |
|
BLAKE2b-256 | 8acd532386dcb98ac663bcbcc4b5580f32fd3050bfa106e481182e4458f4334e |