Closed burnettk closed 11 years ago
Nov Matake » itunes-receipt #2 SUCCESS This pull request looks good (what's this?)
Nov Matake » itunes-receipt #3 SUCCESS This pull request looks good (what's this?)
thanks for your contribution. now itunes-receipt v0.1.0 has your commits :)
Branch adds support for autorenew subscriptions by adding some stuff (in a backwards-compatible manner) to the Itunes::Recipt model.
When one of these auto renew receipts is validated, it can return a "latest" receipt (see http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html#//apple_ref/doc/uid/TP40008267-CH4-SW2).
The new code stores the latest receipt (similar to the way you store the "original" receipt) and also adds a new attribute, expires_date, that is only returned for these types of products. branch includes tests and sample json for one of these return values from apple.
Unrelated: changed an rspec syntax thing from expect {}.should to expect {}.to in order to fix a deprecation warning in rspec.
Thanks for getting it into master, and thanks for writing this code!