I am in the final step of integrating the In App Purchases into my app, the only thing missing is a test, which I cannot perform because the "PurchaseCompleted" event is not triggered in the simulator when I buy something in the sandbox.
My Steps:
I can't test the whole thing on a real device either, because I have a real apple id there and I can't add it to the sandbox in the apple console.
How else should I test this, or am I doing something wrong?
My Steps:
- Call
inAppPurchase.RequestPayment(ProductIdentifier)
- The Popup opens
- I enter the sandbox account password
- You hear the buying sound and it is loading
- Popup closes
- The Password popup opens again
- Repeat step 1-5
In app purchases always ask ID
When I have to call MyStore.RequestPayment, I currently call it on the NoAds button and after closing the application and opening it again it asks me for the user's ID, the restore button works fine. Private Sub B4XPage_Created (Root1 As B4XView)...
www.b4x.com
I can't test the whole thing on a real device either, because I have a real apple id there and I can't add it to the sandbox in the apple console.
How else should I test this, or am I doing something wrong?
B4X:
inAppPurchase.RequestPayment(ProductIdentifier)
Wait For inAppPurchase_PurchaseCompleted (Success As Boolean, Product As Purchase)
Last edited: