Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pypayex

How to install pypayex

  1. Download and install ActivePython
  2. Buy and install the Business Edition license from account.activestate.com
  3. Open Command Prompt
  4. Type pypm install pypayex

pypayex contains builds that are only available via PyPM when you have a current ActivePython Business Edition subscription.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.4.0
0.4.0 Available View build log
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
Windows (64-bit)
0.4.0
0.4.0 Available View build log
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
Mac OS X (10.5+)
0.4.0
0.4.0 Available View build log
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
Linux (32-bit)
0.4.0
0.4.0 Available View build log
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
Linux (64-bit)
0.4.0
0.4.0 Available View build log
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
 
Author
License
BSD
Dependencies
Imports

# pypayex

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='YOUR_MERCHANT_NUMER', encryption_key='YOUR_ENCRYPTION_KEY', production=False)

# Initialize payment response = service.initialize(

System Message: ERROR/3 (<string>, line 24)

Unexpected indentation.
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/'

System Message: WARNING/2 (<string>, line 37)

Block quote ends without a blank line; unexpected unindent.

)

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['status']['errorCode'] == 'OK' and response['transactionStatus'] == '0'

Subscribe to package updates

Download Stats

Last month:4

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.