iOS Question App crash on inapp billing

gerredtor

Active Member
Licensed User
Hello,
i maked a test buy over testflight and always the app crash...

the complete code:

B4X:
Sub store_PurchaseCompleted (Success As Boolean, Product As Purchase)   
    If Success Then       
        Dim no As NativeObject = Product
        Dim b() As Byte = no.NSDataToArray(no.GetField("transactionReceipt"))
               
        Dim bc As ByteConverter
       
        acc.setPro(email,md5Passwort,Success,bc.StringFromBytes(b, "UTF8"),secID)
    End If
End Sub
 

tufanv

Expert
Licensed User
Longtime User
what is the error log ?
What is acc ?
and what is setpro do ?

Hello,
i maked a test buy over testflight and always the app crash...

the complete code:

B4X:
Sub store_PurchaseCompleted (Success As Boolean, Product As Purchase)  
    If Success Then      
        Dim no As NativeObject = Product
        Dim b() As Byte = no.NSDataToArray(no.GetField("transactionReceipt"))
              
        Dim bc As ByteConverter
      
        acc.setPro(email,md5Passwort,Success,bc.StringFromBytes(b, "UTF8"),secID)
    End If
End Sub
 
Upvote 0

gerredtor

Active Member
Licensed User
I have the error.. i have a string in a byte in the function

Public Sub setPro(email As String, password As String, b As Boolean, rID As Byte, secID As String)

to

Public Sub setPro(email As String, password As String, b As Boolean, rID As String, secID As String)
 
Last edited:
Upvote 0

tufanv

Expert
Licensed User
Longtime User
how did you dim secid . maybe you set it as int because 1234SDOW is not a int so it cant parse it ?
I have the error.. i have a string in a byte in the function

Public Sub setPro(email As String, password As String, b As Boolean, rID As Byte, secID As String)

to

Public Sub setPro(email As String, password As String, b As Boolean, rID As String, secID As String)
 
Upvote 0
Top