PayFlow Pro does not return recurring payments older than five years. So, for old recurring subscriptions, the first recurring payment returned by the API won't start at pn_result1.
Since the while loop ends as soon as a pn_result\d is found, it never finds any recurring payments for these old subscriptions.
This change fixes parse_parameters to search over all pn_result\d items and process each in order.
PayFlow Pro does not return recurring payments older than five years. So, for old recurring subscriptions, the first recurring payment returned by the API won't start at pn_result1.
Since the
while
loop ends as soon as a pn_result\d is found, it never finds any recurring payments for these old subscriptions.This change fixes parse_parameters to search over all pn_result\d items and process each in order.