Search Unity

Question IAP are failing

Discussion in 'iOS and tvOS' started by AndreaMar, Mar 17, 2023.

  1. AndreaMar

    AndreaMar

    Joined:
    Oct 29, 2019
    Posts:
    35
    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:<Initialize>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.
     
    Last edited: Mar 18, 2023
  2. AndreaMar

    AndreaMar

    Joined:
    Oct 29, 2019
    Posts:
    35
    Turns out I've misspelled the apple team ID in the catalog. I've spent 3 days looking for a solution and I've always checked superficially for the apple team ID. One letter was missing...