Skip to main content
Solved

MacOS App can not restore transation with error Unexpected backend error when posting receipt


Forum|alt.badge.img+1

Hi, I have a problem with restore transition on my MacOS simulator. A fave steeps to reproduce this issue:

  1. Buy a subscription on my iOS app in simulator
  2. Open my app’s MacOS version with the same iCloud account (debug mode)
  3. Try to restore transaction in my MacOS app and receive an error (Unexpected backend error when posting receipt)

I am able to buy a subscription in my MacOS app, but can not restore it as well. Any suggestions?

I use SDK release/4.0.0-rc.1

Best answer by tina

Hi @Piotr 

It looks like you’re using StoreKit configuration files. When purchasing a product using StoreKit config files, the receipt is stored on the device and not against any sandbox accounts or Apple / iCloud accounts. To test restore functionality, you should use a sandbox account and a physical device. Note that we do have this callout in the docs:

StoreKit testing is currently incompatible with macOS

While you can upload a StoreKit configuration file with a macOS app, this setup is currently incompatible with the Purchases SDK. When making test purchases on the simulator, the transactions will appear to go through but you'll receive an error from our backend. It's recommended to test without configuration files until this is addressed.

View original
Did this post help you find an answer to your question?

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • January 28, 2022

Hi @Piotr 

It looks like you’re using StoreKit configuration files. When purchasing a product using StoreKit config files, the receipt is stored on the device and not against any sandbox accounts or Apple / iCloud accounts. To test restore functionality, you should use a sandbox account and a physical device. Note that we do have this callout in the docs:

StoreKit testing is currently incompatible with macOS

While you can upload a StoreKit configuration file with a macOS app, this setup is currently incompatible with the Purchases SDK. When making test purchases on the simulator, the transactions will appear to go through but you'll receive an error from our backend. It's recommended to test without configuration files until this is addressed.


Forum|alt.badge.img+1

It's recommended to test without configuration files until this is addressed.

How does one test IAPs using RevenueCat in a macOS app without configuration files?  


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings