jnbt / candy_check

Check and verify in-app receipts
MIT License
125 stars 70 forks source link

ReceiptCollection gets the expired_at from the "last" receipt, but not the "latest" #37

Closed sonxurxo closed 4 years ago

sonxurxo commented 5 years ago

This is an issue when verifying the subscription for the receipt obtained by restoring purchases. I noticed than that receipt contains the same receipts but in different order, so the last in the list is not the latest in time. This also happens with trial? and other methods, since they use the same receipt.

I'll fork the project and try to submit a PR for this.