python-mope

A client library for interacting with the Mopé Web Shop API


Keywords
api, client, hakrinbank, merchant, mope, python, suriname, webshop
License
MIT
Install
pip install python-mope==0.0.6

Documentation

build downloads Code style: black

Python Mopé

Client library for Mopé by Hakrinbank

Token acquisition and API Docs

Requirements

  • Python >= 3.8,<4
  • Mopé API Token

Getting Started

First, 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