Skip to main content

async_moip

asyncio/aiohttp (Python3.5+) Moip API wrapper based on moip providing asyncronous requests.

Usage

import async_moip
import aiohttp
import asyncio

async def main():
    moip = async_moip.Moip(environment='<production or sandbox', key='<key>', token='<token>')
    order = await moip.get_order('ORD-W121212121')
    print(order)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Functions

post_customer(params) # create new customer 
get_customer(parameters) # get customer data
post_creditcard(customer_id, parameters) # add new credit card to customer account
delete_creditcard(creditcard_id) # delete credit card
post_order(parameters) # create a new order
get_order(order_id) # get order by id
post_payment(order_id, parameters) # create a payment
get_payment(payment_id) # get payment data by id
capture_payment(payment_id) # capture of a preauthorized payment
void_payment(payment_id) # cancel the capture of a preauthorized payment
account_exists(account_id) # check if account exists

params examples here

Metadata

Release files for async-moip 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-moip 0.0.4
File Size Uploaded
async_moip-0.0.4.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for async-moip 0.0.4
File Interpreter ABI Platform
async_moip-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 kB

Release files / async_moip-0.0.4.tar.gz

Download URL async_moip-0.0.4.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
12722376b1ad4af53fb8247f9ebb82b534f3b3d8ed4cee88401916ca7d8a8268
BLAKE2b-256 checksum
How to use checksums
44cd7442f3fb177cfcd7606f884f080ecac287827e59d9d6b91b7d5e8d0e0912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

Release files / async_moip-0.0.4-py3-none-any.whl

Download URL async_moip-0.0.4-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6863dae33bd35498c61db25978ab169bfc227cac955c47855cb87f0afd2d4eae
BLAKE2b-256 checksum
How to use checksums
c63a374778c239512ddd046345736a09d205379622a40574c7dd295f5474b922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page