2Checkout / 2checkout-php

2Checkout PHP Library
MIT License
83 stars 66 forks source link

Wrong algorithm for extracting last recurring lineitem from sale #30

Open shershennm opened 7 years ago

shershennm commented 7 years ago

Not long time ago 2checkout changed invoice_id numeration and biggest invoice_id now doesn't correlate with the latest invoice. I fixed fetching last invoice from sale data. It will be extracted by the last timestamp field value