Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rhymiz/python-mope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build downloads

Python Mopé

Client library for Mopé by Hakrinbank

Token acquisition and API Docs

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

About

A client library for interacting with Mopé

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •