Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    pypayex 0.4.5

    Download button

    No screenshots available
    Downloads: 156  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Funkbit AS | More programs
    BSD License / FREE
    June 30th, 2012, 03:41 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    pypayex description

    PayEx API wrapper

    pypayex is a Python module for interacting with the PayEx Soap API.

    The PayEx implementation manual is available here: http://www.payexpim.com/

    Installation

    Install `pypayex` (available on PyPi):

            pip install pypayex

    Requires the `suds` SOAP library, and `ordereddict` on Python < 2.7.

    Usage

            from payex.service import Payex

            service = Payex(merchant_number='YOU_MERCHANT_NUMER', encryption_key='YOUR_ENCRYPTION_KEY', production=False)

            # Initialize payment
        response = service.initialize(purchaseOperation='SALE', price='5000', currency='NOK', vat='2500', orderID='test1', productNumber='123', description=u'This is a test.', clientIPAddress='127.0.0.1', clientIdentifier='USERAGENT=test&username=testuser', additionalValues='PAYMENTMENU=TRUE', returnUrl='http://example.org/return/', view='PX', cancelUrl='http://example.org/cancel/')


    User performs the payment on the URL in `response['redirectURL']`, and is redirected back to the `returnUrl`.

        # When user is redirected back to the returnUrl, check the status of the transaction
        response = service.complete(orderRef='GENERATED_ORDER_REF')

            # Transaction was successfully performed
            response['errorCode'] == 'OK' and response['transactionStatus'] == 0



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    PayEx API | Python library | PayEx wrapper | PayEx | Soap | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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