Skip to content

pombredanne/webpay-python

 
 

Repository files navigation

webpay-python

image

image

webpay-python is a client library for python of WebPay.

Requirements

CPython 2.6, 2.7, 3.2, 3.3

Installation

$ pip install webpay

Usage

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.

Dependencies

Development

Testing

$ pip install -r dev-requirements.txt
$ py.test

License

The MIT License (MIT)

Copyright (c) 2013 WebPay.

Releases

No releases published

Packages

No packages published