robotmedia / RMStore

A lightweight iOS library for In-App Purchases
Apache License 2.0
2.43k stars 450 forks source link

Switching from MKStoreKit #94

Closed bmueller closed 10 years ago

bmueller commented 10 years ago

I'd like to switch an existing app from MKStoreKit to RMStore. How would I go about transferring a user's existing non-consumable purchases to RMStore's default keychain persistor?

Morpheus2002 commented 10 years ago

Would like to switch from MKStoreKit too. But I need to transfer non-consumabel, cunsumable and subscription purchases.

hpique commented 10 years ago

I'm not familiar with MKStoreKit. For the RMStore side of the equation:

If you're targeting iOS 7 or higher, you can query purchases from the app receipt and bypass MKStoreKit.

For the migration, you can create a custom transaction persistor. To avoid duplicating code, you could subclass RMStoreKeychainPersistence and expose some of its private methods as public interface as needed.

hpique commented 10 years ago

There's hasn't been any activity in 14 days so I'm closing this issue. @bmueller @Morpheus2002, you're welcome to post what you finally did as it might help others in the same situation.

Morpheus2002 commented 10 years ago

I'm using both libraries now. Just took the receipt check functionality from RMStore, as it's broken on MKStoreKit.