arcus-python
Arcus python3.6+ client library for API version 3.1 of Arcus.
Install
$ pip install arcus
Testing
$ make test
Authentication and account info
Current version support direct endpoint calls.
from arcus.client import Client
client = Client('your-api-key', 'your-secret-key')
account_info = client.get('/account')
account_info = dict(biller_id=40, account_number='501000000007')
bill = client.post('/bills', account_info)
Pay bills
from arcus import Client
client = Client('your-api-key', 'your-secret-key')
bill = client.bills.create(40, '501000000007')
transaction = bill.pay()
transaction.refresh()
cancellation = transaction.cancel()
assert cancellation['code'] == 'R0'
assert cancellation['message'] == 'Transaction successful'
assert transaction.status == 'refunded'
Top-up
from arcus import Client
client = Client('your-api-key', 'your-secret-key')
biller_id = 808080
phone_number = '5599992222'
amount = 100.0
topup = client.topups.create(biller_id, phone_number, amount)
assert topup.bill_amount == 100.0
Billers list
You can list all active billers or filter in a specific field
from arcus.client import Client
client = Client('your-api-key', 'your-secret-key')
mx_biller_list = client.biller.list(country='MX', currency='MXN')
electricity_biller_list = client.biller.list(biller_type='Electricity')