Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    python-eway-token 0.1.1

    Download button

    No screenshots available
    Downloads: 79  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sharif Olorin | More programs
    MIT/X Consortium Lic... / FREE
    July 2nd, 2012, 22:18 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-eway-token description

    eWay token/managed payment API client

    python-eway-token is a simple Python implementation of Eway's token-based/managed payment system.

    Installation

    sudo python2 setup.py install

    Example usage

    from eway_token import EwayTokenClient, EwayCustomer

    client = EwayTokenClient(eway_customer_id=87654321,
     username='username',
     password='password',
     live=True)

    customer = EwayCustomer.create(client,
     title='Mr.',
     first_name='Foo',
     last_name='Bar',
     country='au',
     cc_number='4444333322221111',
     cc_expiry_month=11,
     cc_expiry_year=14,
     cc_name_on_card='Foo Baz Bar')

    # after creation the Eway customer ID is stored in
    # customer.customer_id

    customer.title = 'Prof.'
    customer.save_changes()
    payment = customer.process_payment(Decimal('3.14'), 'ref00', 'invoice description', cvn=271)

    another_customer = EwayCustomer.get(client, customer_id=654321)
    past_payments = another_customer.get_payments()



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    eWay token | Python library | payment API | Python | eWay | token

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM