StoreKit

RSS for tag

Support in-app purchases and interactions with the App Store using StoreKit.

StoreKit Documentation

Post

Replies

Boosts

Views

Activity

Transaction.updates and purchases made on this device
The docs for Transaction.updates say: Use updates to receive new transactions while the app is running. This sequence receives transactions that occur outside of the app, such as Ask to Buy transactions, subscription offer code redemptions, and purchases that customers make in the App Store. It also emits transactions that customers complete in your app on another device. Note that after a successful in-app purchase on the same device, StoreKit returns the transaction through Product.PurchaseResult.success(_:). So Transaction.updates isn't supposed to include transactions for purchases that are made in this instance of the app, right? I have this code to get those transactions: SubscriptionStoreView(groupID: group_id) { } .onInAppPurchaseCompletion() { product, result in ..... } But when I make a purchase using this SubscriptionStoreView, I see that both this .onInAppPurchaseCompletion code and my code observing Transaction.updates is called. Is this expected? Will it work reliably without the .onInAppPurchaseCompletion ? Thanks.
0
0
580
Feb ’24
Does StoreKit2 not reliably report available purchases shortly after login?
My app is a login item that gets registered as a background agent using SMAppService. On launch it checks to see that the user has an active subscription, and when I run it from Xcode, this works fine. But it seems that if I restart my machine and it is run from launchd right at login, StoreKit doesn't return any purchases. This results in my app throwing up a window to tell the user to subscribe. It’s hard to be sure this is the behavior, because I can't really use a debugger, and for whatever reason, OSLog is not persisting messages (despite being configured to do so). Does anyone know if it takes a while after restart or login for Store Kit to reliably return purchases?
1
0
489
Feb ’24
Several subscriptions although I only need 2
Hello everyone, I have developed an app and actually only have 2 subscription models, one for a monthly subscription and one for a yearly subscription. For the start I created these two subscriptions as an offer, then my customer wanted to create the actual price, so I created 2 more subscription models (monthly and annual). At first I thought that I would change the price of the first two subscriptions, but since I wasn't sure whether the first buyers would have to pay the new price, I created 2 new subscriptions. I let the respective subscriptions appear through a third party provider as I need them. But unfortunately you could simply change the subscription to the subscription with the lowest price in the store yourself. I would like to avoid that. My question now is, could I simply change the price and the new buyers pay the new price but the previous buyers continue to pay the old price? And if so, could I deactivate all other subscriptions and would the buyers of the deactivated subscriptions continue to pay this price and not the price of the active subscriptions? It would be really great if you could answer these questions for me. Thank you very much.
0
0
231
Feb ’24
The in-app payment window is not displayed on the commercial apps deployed in the App Store.
The in-app payment window is not displayed on the commercial apps deployed in the App Store. (IAP is subscription type) It is a WKWebView app, and in the development environment (build, testflight), the in-app payment window is displayed when the product button is pressed (sand box environment) This app has been commercially distributed. And when you press the product button in actual commercial, the in-app payment window is not displayed. Before payment, access the apple receipt server corresponding to the commercial server, determine whether it is [already subscribed] and display the payment window. [Example] https://buy.itunes.apple.com/verifyReceipt I got you to call. The source code related to No. 3 above is complicated, but there are many do-catch and if-else, and if it does not work normally, the source code is written to display an error message using an alert, but the alert is not displayed in actual commercial use.
0
0
277
Feb ’24
In-app Purchases not working correctly.
I have uploaded one of my app to give some paid service. But when the user tries to make an in-app purchase, it opens one screen like the title is "Apple ID, Almost there Payment request will be created for xyzdemo@ybl" After I press the continue button this window(Screen) closes automatically. But UPI requests are sent on the particular app. So why is this happening on my app? Why does this window (Screen) dismiss automatically? I have also attached the screen. This screen automatically dismissed.
2
0
639
Feb ’24
Clarification on the App Store Review Guidelines, specifically regarding the use of external payment systems within our app.
One of our apps aims to offer ​​monthly payments after a 1 month free trial expires. To facilitate a seamless payment experience for our subscribers, we ​a​re planning to integrate Stripe for processing subscriptions and payments for ​M​onthly subscriptions. Understanding the importance of complying with the App Store Review Guidelines, we seek to clarify the following: Web View for External Payments: Is it permissible under the current guidelines to open a web view within our app that directs users to a Stripe payment page for the purpose of subscribing to or purchasing ​a​ monthly subscription? We intend to ensure that this process is used strictly for ​r​ecurring monthly payments. Guideline Reference: We refer specifically to Guideline 3.1.1 concerning in-app purchases and would like to understand if there are exceptions or permissible use cases for integrating a web view that directs to an external payment system, under certain conditions or for specific types of goods and services.
0
0
347
Feb ’24
Including property list file in app bundle
I try to set up auto-renewable subscriptions. I learned I need to add in my app bundle a file like this: I wasn't successful. I don't know how to access my app's bundle and where it is located. I learned too, placing the file at an incorrect location could result in strange behaviour of my app or even in damage. So I am very careful Who can help? Best regards, Gerhard
0
0
400
Feb ’24
how can manage In app purchase for selected courses with single payment
We have 5 subcourses like below subcourse1 - 10RS subcourse2 - 20RS Sucourse3- 5RS subcourse4- 11 RS supcouse5 - 12RS If the user selected sourcouse1 and subcourse3 and chose external gateway then we can easily take 15rs payment from external gateway (for any combination of selection of subcourses). Now if user selected subcourse1 , subcourse2, subocourse4 and chosen in app purchase option now we have to take payment of 41rs together. this is not possible unless we create any sku of combination of subcourse1 , subcourse2 and subcourse4. (practically we can create all sku combination for 5 sub courses) for subcourse1, subcourse2 and subcourse3 there are possible combination are subcourse1 subcourse2 3.subcourse3 4. subcourse1 and subcurse2 5. subcourse1 and subcourse3 6. subcourse2 and subcourse3 So we need to create 5 sku in app purchase for taking payment for all user selection combination Now if we have a total of 10 subcourses then there will be multiple combinations (total 3,628,800) . it is not practical to create sku for all 3,628,800 combination please suggest any way to handle my use case or should We prefer external gateway?
0
0
252
Feb ’24
Manage Subscriptions
Hi, I'm now developing an app that uses purchase. I would like to create subscriptions for 3 and 6 months. The price should be €8.99 or €6.99 per month. That means you pay a total of €26.97 or €41.94 My problem is you can't enter these prices €26.97 and €41.94. How can I do that? thanks for any help rtko
2
0
262
Feb ’24
Tax on IAP with US government
We have the following questions about tax on in-app purchase: Does the transaction fee we pay to apple store already include taxes imposed by the US government? If taxes are not included, how do we handle tax matters related to the U.S. government, and how to proceed with payment? Thank you for your understanding.
3
0
356
Feb ’24
Is it possible to issue a refund for the upgraded subscription and then request a refund for the pre-upgrade subscription?
Hi, I have a question about Apple subscriptions. It is my understanding that when a user upgrades, the subscription prior to the upgrade is already prorated and partially refunded. Is it possible to issue a refund for the upgraded subscription and then request a refund for the pre-upgrade subscription? The server notifications I received were as follows purchase A upgrade A -> B A would have already been prorated and partially refunded refund B Has a revocationReason / revocationDate expired B refund A - should have already been prorated and partially refunded, but if the user requests another refund, will it be given? no revocationReason / revocationDate My guess is no because it's already in revoke status. refund reversed A This may not be present
0
0
543
Feb ’24
Advanced Purchase of 3.1.3(e) Goods and Services Outside of the App
Hi There, I'm trying to understand the limitations we may have for an app we are developing. We have a coffee shop app, which would like to offer of a deal - example: a monthly coffee subscription, for $20 you get 10 black coffees for the month which can be redeemed in either our web or mobile apps during the set duration. This is not an in-app purchase, but one that will end up with physical coffee, though it will be received over a period of time. Do we know if it's okay to use a webview to link to the subscription page for managing their coffee subscription (handled outside of IAP as it is a physical good)? They would add their payment info the same way they already do with other integrations like square or stripe payment forms, and then we link them to the actual payment site. I see some things about not even giving the option to show the link or tell the customers what the link is if they want to investigate the option which would be very difficult for the customer to manage. We want a good experience. The guideline itself says "you must use purchase methods other than in-app purchase to collect those payments, such as Apple Pay or traditional credit card entry." Does anyone see an issue with the planned approach? I see the different lawsuits with EPIC and what not and we don't to end up with a rejected app if we can avoid it.
0
0
543
Feb ’24
In-App Subscription - How do we get paid?
Hey Everyone, I have an app running in-app subscriptions through RevenueCat. I am getting paid by Google regularly, but Apple is sitting on our money. I can see about 4 invoices since October last year (When the app went live). Am I meant to download those and send them back to Apple? Could this be why we aren't getting paid, and why isn't Apple just sending the money through, given we have setup banking and agreements correctly? Michael
3
0
380
Feb ’24
Apple 30% Apply to Recreational Sports?
Would registering for a physical sporting event get hit by the 30% IAP fee? Spots are typically limited, so the app just helps coordinate signups, so that players don't show up to a completely booked session. I'm also wondering if I can allow the user to pre-fund their account, for example with $30, so that they can sign up a $10 session and still have a balance of $20 in their account to sign up for more sessions.
0
0
278
Feb ’24