bkeating / python-payflowpro

A simple Python client for PayPal's Payflow Pro API (HTTPS Interface).
https://www.paypal.com/us/webapps/mpp/payflow-payment-gateway
Apache License 2.0
47 stars 22 forks source link

PayPal's Payflow Pro Python Client

python-payflowpro (or simply payflowpro within the Python environment) provides an interface to the PayPal Payflow Pro API (HTTPS Interface) making it easy for you to collect and manage payments within your python-based applications.

This project is a fork of James Murty & John D'Agostino's python-payflowpro project hosted on Google Code and is now considered the most current and active.

Specifically, It allows you to:

Payment Methods Supported (TENDER_TYPES)

Transactions Types Supported (TRANSACTION_TYPES)

Requirements

The recurring billing functionality of this library requires the PayflowPro account to have the Recurring Billing module activated (additional costs apply). Likewise with the Security Code & Address Verification module. Unless you have the appropriate modules enabled within your Paypal Payflow Pro Account (This is set via the Paypal Manager), passing Street Addresses and Security Codes will not be ran through verification.

Installation

You can install python-payflowpro one of three ways:

Each approach gives you the same result. You can test your installation by starting an interactive prompt:

$ python
>>> import payflowpro
>>> payflowpro.VERSION
(0, 3, 'pre')

Usage

Refer to the client.py file in the tests subdirectory for example usage of the client.

To run the tests you will have to edit the file and set the following variables with a valid Payflow Pro Account.