parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

In-App-Purchase compatibility (PFPurchase)

Open UnlikelySassou opened this issue 10 years ago • 14 comments

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?

UnlikelySassou avatar Oct 13 '16 16:10 UnlikelySassou

I suggest pinging the author of the PR to make sure they update the docs as well if needed.

hramos avatar Oct 14 '16 17:10 hramos

@flovilmart Hi, any chance you can confirm this please? The PR is https://github.com/ParsePlatform/parse-server/pull/515

UnlikelySassou avatar Oct 27 '16 18:10 UnlikelySassou

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.

flovilmart avatar Oct 27 '16 19:10 flovilmart

Great, I'll give it a try next week. Thank you for the reply

UnlikelySassou avatar Oct 27 '16 19:10 UnlikelySassou

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

LaChrome avatar Nov 29 '16 06:11 LaChrome

can you run with VERBOSE=1 to have more logs understanding why the receipt is not valid?

flovilmart avatar Nov 29 '16 15:11 flovilmart

yep - I will try that today, and will let you know how it goes. Thanks

LaChrome avatar Nov 29 '16 15:11 LaChrome

is there any documentation on PFPurchase? and the implementation?

Cliffordwh avatar Nov 30 '16 09:11 Cliffordwh

Can confirm that standard IAP works! I managed to get this all working. ( Sandbox )

Cliffordwh avatar Nov 30 '16 11:11 Cliffordwh

So the auto renewable IAP is not working right?

flovilmart avatar Nov 30 '16 12:11 flovilmart

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?

Cliffordwh avatar Nov 30 '16 12:11 Cliffordwh

Probably on the docs repo would be better. We're moving the docs there so the wiki holds implementation details, guidelines etc...

flovilmart avatar Nov 30 '16 13:11 flovilmart

Thanks!

Cliffordwh avatar Nov 30 '16 13:11 Cliffordwh

here: https://github.com/parseplatform/docs

That's in markdown, so very easy :)

flovilmart avatar Nov 30 '16 13:11 flovilmart