In-App-Purchase compatibility (PFPurchase)
From the Compatibility with Hosted Parse page, In-App Purchase is not supported, but I found some merged PR about it.
I have an iOS app that makes consummable and non-consumable purchases using [PFPurchase buyProduct:] and restores via [PFPurchase restore].
Are these features supported by Parse Server?
I suggest pinging the author of the PR to make sure they update the docs as well if needed.
@flovilmart Hi, any chance you can confirm this please? The PR is https://github.com/ParsePlatform/parse-server/pull/515
I implemented that PR a while ago to the best of my knowledge and apple documentation about IAP purchase validation. You should probably try with sandboxed IAP's and make sure the product validation is working as expected.
Great, I'll give it a try next week. Thank you for the reply
I gave PFPurchase on iOS a try with both a standard IAP and a auto-renewable IAP and set all the required fields in the Product table.
When executing the "downloadAssetForTransaction", the iOS SDK spits out the error [Error]: The receipt is invalid. (Code: 144, Version: 1.14.2)
I get the same error for a standard IAP, and also subscription.
Thanks
Chris
can you run with VERBOSE=1 to have more logs understanding why the receipt is not valid?
yep - I will try that today, and will let you know how it goes. Thanks
is there any documentation on PFPurchase? and the implementation?
Can confirm that standard IAP works! I managed to get this all working. ( Sandbox )
So the auto renewable IAP is not working right?
Haven't tested, Will do that shortly! I thought id first draft some documentation from start to end on the implementation for swift3. Could we then use that on the wiki?
Probably on the docs repo would be better. We're moving the docs there so the wiki holds implementation details, guidelines etc...
Thanks!
here: https://github.com/parseplatform/docs
That's in markdown, so very easy :)