Post

Replies

Boosts

Views

Activity

StoreKit 2 Sandbox use can't buy the same subscription again
My StoreKit 2 tests flow looks like this: Buy subscription lvl 1 Buy subscription lvl 2 Buy subscription lvl 1 The problem is that when trying to buy the same subscription again with Sandbox user - the iOS dialogs to confirm Payment are not shown. Product.PurchaseResult in .success but if checking in Settings - the subscription is not changed. What's also interesting: it works if changes directly from System Settings. Any ideas of what is going on would be appreciated.
4
0
2.2k
Dec ’22
StoreKit 2 Sandbox user subscriptions issue
Strange behavior was found for subscription upgrades/downgrades for Sandbox users. Step 1: Select from the internal app UI productId. Step 2: Get the product from StoreKit by Product.products(for: [productID]) Step 3: Purchase fetched product: product.purchase(options: [options]) Step 4: Analyze the received Product.PurchaseResult. And what we have here: Works perfectly on the first try. The correct and successful transaction was received. But when tried to change the subscription, using the same flow, in Step 4 received a successful transaction with a different productID. Usually the previous subscription productID. Can't get how it can be. Request purchase with one productID, but receive successful result with another. Any ideas of what is going on would be appreciated.
0
1
659
Dec ’22