Swiftystorekit: Question: How to fetch receipt for restored purchases?

Created on 17 Jan 2018  路  2Comments  路  Source: bizz84/SwiftyStoreKit

When using restorePurchases, an array of results.restoredPurchases is returned. If I need to use the receipt(s) in order to non-atomically validate these restored purchases in my backend server, do I just use the same SwiftyStoreKit.localReceiptData inside the restorePurchases callback and send this one receipt to my backend? Or are there multiple receipts I need to access, for each restored purchase?

answered question

Most helpful comment

If I'm not mistaken, it was discussed on #272

All 2 comments

If I'm not mistaken, it was discussed on #272

@aehlke Apologies for the very late reply.

You can use this method to fetch the receipt and send it to your server:

func fetchReceipt(forceRefresh: Bool, completion: @escaping (FetchReceiptResult) -> Void)

Closing this. Feel free to reopen if you have any other questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlaws picture jlaws  路  6Comments

odedharth picture odedharth  路  8Comments

andresmontelpare picture andresmontelpare  路  9Comments

Bizzi-Body picture Bizzi-Body  路  3Comments

rdforte picture rdforte  路  3Comments