Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b59358d936
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (19 sloc) 0.684 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import sys
import os

project_root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if not project_root_dir in sys.path:
    sys.path.insert(0, project_root_dir)

import paypal

try:
    import api_details
except ImportError:
    print """
ERROR: No api_details.py file exists in your paypal/tests directory. Please
copy api_details_blank.py to api_details.py and modify the values to your
own API developer _test_ credentials.
If you don't already have test credentials, please visit:
https://developer.paypal.com
"""
    sys.exit(1)

def get_interface_obj():
    return paypal.PayPalInterface(config=api_details.CONFIG)
Something went wrong with that request. Please try again.