Search Unity

iOS After adding a payment method the purchase is canceled

Discussion in 'Unity IAP' started by yaroslav_lahin, Jun 15, 2021.

  1. yaroslav_lahin

    yaroslav_lahin

    Joined:
    Mar 17, 2021
    Posts:
    12
    1) Invoke InitiatePurchase() method
    2) Add payment method in native dialog
    3) Purchase product
    4) See the native window "Purchse successful"
    5) In game error:
    onPurchaseFailedEvent(productId:com.my.product_id message:APPLE_Cannot connect to iTunes Store)

    In Purchase History the product has pending state.

    upload_2021-6-16_0-53-25.png
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Are you testing via TestFlight? Does it happen every time? Is this in Sandbox? It sounds like an error from Apple, we are pass-through service only for iOS Storekit. What iPhone model are you using? IAP would not be expected to work on a Simulator.
     
  3. yaroslav_lahin

    yaroslav_lahin

    Joined:
    Mar 17, 2021
    Posts:
    12
    @JeffDUnity3D The problem happened with real payments. Not TestFlight...
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Are you able to answer the rest of my questions? You want to test via TestFlight first.