Closed ahmetemir closed 8 years ago
Thanks for reporting this issue. The issue has been fixed so that we properly push the lineitems to the array, resulting in the expected index.
This issue still existed for me.
I believe that the getRecurringLineitems function in Twocheckoututil.php was not getting the latest invoice in a sale properly and changing:
$invoice = max($invoiceData);
to
$invoice = end($invoiceData);
in Twocheckoututil.php worked for me.
In Twocheckoutsale.php
If recurring item is not the first line item,it throws "No recurring lineitems to stop".And in my situation array returned from getRecurringLineitems function has index starting from 1.Please replace this line with: