bkeating@bristle:~$ python
>>> from payflowpro.classes import CreditCard, Amount, Profile, Address, \
... ShippingAddress, Tracking, Response, \
... CustomerInfo
>>> from payflowpro.client import PayflowProClient, find_classes_in_list, \
... find_class_in_list
>>> client = PayflowProClient(
... partner="paypal",
... vendor="*********",
... username="*********",
... password="*********",
... url_base="https://payflowpro.paypal.com")
>>> # RP0000000600 is a "Active" Recuring Profile.
>>> results, unconsumed_data = client.profile_inquiry(profile_id='RP0000000600', payment_history_only=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/django/projects/******/payflowpro/client.py", line 297, in profile_inquiry
return self._do_request(request_id, params)
File "/data/django/projects/******/payflowpro/client.py", line 193, in _do_request
result_objects, unconsumed_data = parse_parameters(results)
File "/data/django/projects/******/payflowpro/classes.py", line 349, in parse_parameters
p_transtate = unconsumed_data.pop("p_transtate%d" % recurpaycount),
KeyError: 'p_transtate1'
>>> client = PayflowProClient(
... partner="paypal",
... vendor="*********",
... username="*********",
... password="*********",
... url_base="https://pilot-payflowpro.paypal.com")
>>> results, unconsumed_data = client.profile_inquiry(profile_id='RT0000000002', payment_history_only=True)
>>> recurring_payments = results[-1]
>>> print recurring_payments
RecurringPayments: [RecurringPayment: {'p_pnref': 'E78P0BD0911E', 'p_amt': '8.00', 'p_transtime': '06-Sep-07 04:30 AM', 'p_transtate': '8', 'p_tender': 'C', 'p_result': '0'}, ... ]
Ideas as to whats going on here? Is there some testing that can happen before doing a history_only inquiry?