Wirecard API asyncio wrapper
Project description
aiowirecard
Asyncio wirecard API wrapper based on moip providing asyncronous requests.
Usage
import aiowirecard import aiohttp import asyncio async def main(): wirecard = aiowirecard.Wirecard(environment='<production or sandbox', key='<key>', token='<token>') order = await wirecard.get_order('ORD-W121212121') print(order) loop = asyncio.get_event_loop() loop.run_until_complete(main())
Functions
post_customer(parameters) # 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
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
aiowirecard-0.0.6.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for aiowirecard-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 727fc6e49ac798d797e27554a6f82e717a82c9ff1c7f85f0a068dd581e429f1c |
|
MD5 | 7d7735c6c0ab7f99247950924766ec6a |
|
BLAKE2-256 | 0b20bf8b09c7082e7290c90b7c1cfbb947d3b414e41514f2d2d94b97b5ee40d9 |