Hello devs,
I’m trying to test in-app purchasing on iOS, but it’s working. I can’t find a solution anywhere. Here’s the console output in xCode, testing on a real device:
2023-03-17 09:36:59.493750+0100 ChickenFamily[3037:676461] UnityIAP: PurchaseProduct: xxx
2023-03-17 09:36:59.522248+0100 ChickenFamily[3037:676461] UnityIAP: UpdatedTransactions
2023-03-17 09:37:06.440404+0100 ChickenFamily[3037:676763] <SKPaymentQueue: 0x282739410>: Payment completed with error: Error Domain=ASDServerErrorDomain Code=3502 "Quest’articolo non è disponibile. // this item is not available // " UserInfo={storefront-country-code=ITA, client-environment-type=Sandbox, AMSServerErrorCode=3502, NSLocalizedDescription=Quest’articolo non è disponibile // this item is not available //.}
2023-03-17 09:37:06.446982+0100 ChickenFamily[3037:676461] UnityIAP: UpdatedTransactions
2023-03-17 09:37:06.447102+0100 ChickenFamily[3037:676461] UnityIAP: PurchaseFailed: 0
2023-03-17 09:37:06.466416+0100 ChickenFamily[3037:676461] UnityIAP: No App Receipt found
onPurchaseFailedEvent(productId:xxx message:APPLE_Si è verificato un errore sconosciuto // unknown error occurred //)
UnityEngine.Purchasing.PurchasingManager:OnPurchaseFailed(PurchaseFailureDescription)
UnityEngine.Purchasing.Extension.UnityUtil:Update()
Purchase for product xxx has failed for reason Unknown.
<>c:b__3_0(Product, PurchaseFailureReason)
UnityEngine.Events.UnityEvent`2:Invoke(T0, T1)
UnityEngine.Purchasing.CodelessIAPStoreListener:OnPurchaseFailed(Product, PurchaseFailureReason)
UnityEngine.Purchasing.Extension.UnityUtil:Update()
- I’ve an Apple developer account.
- I’ve set up my banking, tax and finance info.
- I’ve created the in-app purchase in the App Store Connect and I’ve made sure it’s the same ID.
- The app bundle ID is the same.
- Uploaded a build to TestFlight, which is now active.
- I’ve created a sandbox test user and tried with it. Still not working.