webpay-python is a client library for python of WebPay.
CPython 2.6, 2.7, 3.2, 3.3
$ pip install webpay
import webpay
client = webpay.WebPay('YOUR_TEST_SECRET_KEY')
client.charges.create(
amount=400,
currency="jpy",
card={
'number': '4242-4242-4242-4242',
'exp_month': '11',
'exp_year': '2014',
'cvc': '123',
'name': 'FOO BAR'
}
)
See Python API document on WebPay official page for more details.
$ pip install -r dev-requirements.txt
$ py.test
Copyright (c) 2013 WebPay.