Skip to main content

WebPay Python bindings

Project description

webpay-python

https://badge.fury.io/py/webpay.png https://api.travis-ci.org/webpay/webpay-python.png

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

from webpay import WebPay
webpay = WebPay('YOUR_TEST_SECRET_KEY')

webpay.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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webpay-1.0.5.tar.gz (180.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page