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

new_acct is undefined in tests #10

Open michaelhelmick opened 11 years ago

michaelhelmick commented 11 years ago
**********************************************************************
File "client.py", line 70, in __main__
Failed example:
    responses, unconsumed_data = client.profile_modify(
        profile_id='RT0000000002', extras=[
            Profile(profilename="Joe Bloggs", start=052413,),
            CreditCard(acct=new_acct,expdate=new_expdate,cvv2=new_cvc,),
            ShippingAddress(shiptostreet="123 Main St.", shiptocity="Oakland",
                shiptofirstname="Joe", shiptolastname="Bloggs",
                shiptostate="CA", shiptocountry="US", shiptozip="94123"),
            CustomerInfo(email='test@example.com',
                firstname='Joe', lastname='Bloggs'),
            Tracking(comment1="Order #44",comment2="Submitted by doctest.",)])
Exception raised:
    Traceback (most recent call last):
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__[17]>", line 4, in <module>
        CreditCard(acct=new_acct,expdate=new_expdate,cvv2=new_cvc,),
    NameError: name 'new_acct' is not defined
**********************************************************************

It looks like new_expdate and new_cvc is undefined, too.