ladeiko / node-apple-receipt-verify

A Node.js module for In-App-Purchase receipt validation for iOS.
MIT License
92 stars 25 forks source link

Failed to validate with EmptyError but still want access to original_application_version #28

Closed innesngunn closed 3 years ago

innesngunn commented 3 years ago

Hello,

I'm converting a paid app to a free app with in-app purchase. On initial launch, I'd like to validate the original_application_version of the app and automatically enable the "paid" features for users who have already paid money for the app.

Since the in_app list is empty (which it should be for my use case), I get an error on validation and (as far I can tell) I don't have access to the purchasedProducts result.

Is it possible to ignore the EmptyError and gain access to the purchasedProducts so that I can access the original_application_version?

Thanks!

ladeiko commented 3 years ago

Just released 1.10.0 version: added these fields to EmptyError

innesngunn commented 3 years ago

Thank you!