iOS Question In app purchase returns unknown error

mehdipass

Active Member
Hi,
I implemented in-app purchases with istore library.
Now when i pay, returns this error:

Error:
An unknown error occurred

How to fixed it.
 

mehdipass

Active Member
Not enough information to say anything.
Hi,
In MyStore_PurchaseCompleted sub, i write this code:

Code:
Sub MyStore_PurchaseCompleted (Success As Boolean, Product As Purchase)
    If Product.IsInitialized And Success Then
        Log("Product: " & Product.ProductIdentifier & ", date=" & DateTime.Time(Product.TransactionDate) & _
        ", Transaction identifier=" & Product.TransactionIdentifier)
    Else
        ...
    End If
    Log(Success)
    Log(Product.Error.Code)
    Log(Product.Error.Message)
End Sub

Always return this log:

Error:
Success: False

Product.Error.Code: 0

Product.Error.Message: An unknown error occurred
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
maybe an issue with the test account?
Hi,
In MyStore_PurchaseCompleted sub, i write this code:

Code:
Sub MyStore_PurchaseCompleted (Success As Boolean, Product As Purchase)
    If Product.IsInitialized And Success Then
        Log("Product: " & Product.ProductIdentifier & ", date=" & DateTime.Time(Product.TransactionDate) & _
        ", Transaction identifier=" & Product.TransactionIdentifier)
    Else
        ...
    End If
    Log(Success)
    Log(Product.Error.Code)
    Log(Product.Error.Message)
End Sub

Always return this log:

Error:
Success: False

Product.Error.Code: 0

Product.Error.Message: An unknown error occurred
 
Upvote 0
Top