![]() ![]() If a user initiates multiple “Ask to Buy” purchase attempts, each new request for the same item, overwrites the previous request and restarts the 24 hour timer. It is also the responsibility of the app to track this 24 hour timeout period. The application is not notified that the transaction failed due to inaction. If the parent does not approve (or fail) the “Ask to Buy” purchase within 24 hours, the app can assume that the transaction will never complete. Some additional notes - “Ask to Buy” purchases are only deferred for 24 hours. When the application is frontmost and the transaction response is available, it will be passed to the updatedTransactions delegate method. The simple means to support “Ask to Buy” - call the SKPaymentQueue -addTransactionObserver once in the didFinishLauchingWithOptions delegate method and never call the removeTransactionObserver method - make sure that the observer is always active. ![]() Instead, the “Ask to Buy” scenario means that the application won’t know until “later” (which could be hours later) of a formal response. Instead, I can only advise you that in the “Ask to Buy” scenario - that the application not assume that after a purchase via the addPayment method, that the transaction will be either immediately successful or a failure. This makes sense, but I have no way to simulate this process. ![]() The primary reason for wanting this support is to be able to test the “Ask To Buy” purchase process. I suggest that you submit an enhancement request - via the Apple Developer bug report web page. This support only exists in the production environment. “Ask to Buy” is not an API implementation, but a support process implemented by iTunesConnect which requires StoreKit interaction with a specific iTunes account. With regards to Ask-To-Buy support, there is no support for this function in the Sandbox nor in the TestFlight environment. Here's a posting I did a while back and the information remains true The AskToBuy simulation doesn't work in the sandbox. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |