https://github.com/rhymiz/python-mope
A client library for interacting with Mopé
https://github.com/rhymiz/python-mope
api client hakrinbank merchant mope python suriname webshop
Last synced: 9 months ago
JSON representation
A client library for interacting with Mopé
- Host: GitHub
- URL: https://github.com/rhymiz/python-mope
- Owner: rhymiz
- License: mit
- Created: 2020-03-01T18:47:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T03:13:23.000Z (over 1 year ago)
- Last Synced: 2025-03-11T07:18:55.873Z (9 months ago)
- Topics: api, client, hakrinbank, merchant, mope, python, suriname, webshop
- Language: Python
- Homepage: https://mope.sr
- Size: 79.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

[](https://pepy.tech/project/python-mope)
[](https://github.com/psf/black)
# Python Mopé
Client library for Mopé by Hakrinbank
### Token acquisition and API Docs
- [API Docs](https://api.mope.sr/integration/doc)
- Instructions for [acquiring a token](https://drive.google.com/file/d/10fWqgpl2Ip9JIacl0pwzUDi_HV6WLbCi/view?usp=sharing)
### Requirements
- Python >= 3.8,<4
- Mopé API Token
### Getting Started
First, install from PyPi by running `pip install python-mope`
Example usage:
```python
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`