Android Question I don't know how to solve this question.

A stupid in-app billing error

  • send answer to my email: kam_yu@hotmail.com

    Votes: 0 0.0%
  • send a page to me to read

    Votes: 0 0.0%
  • suggest me some opinion to solve that question

    Votes: 0 0.0%

  • Total voters
    0

mark35at

Well-Known Member
Licensed User
You do not give a lot of information but I can think of three things:
1. Your key is wrong
2. You are not connected to a google account
3. Google play store is not installed
 

Gary Lai

New Member
Licensed User
My Code is in follow:

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim manager As BillingManager3
Private key As String
key = "MIIBIj....."
End Sub

Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.

Private Button1 As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")

Activity.LoadLayout("testing")
If FirstTime Then
manager.Initialize("manager",key)
manager.DebugLogging = True
End If

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub kk
End Sub

Sub manager_BillingSupported (Supported As Boolean, Message As String)
Log(Supported & ", " & Message)
Log("Subscriptions supported: " & manager.SubscriptionsSupported)
If Supported Then
manager.GetOwnedProducts
End If
End Sub

Sub manager_OwnedProducts (Success As Boolean, purchases As Map) 'manager_purchasesComplete
Log(Success & "$$$$")
If Success Then
Log(purchases)
For Each p As Purchase In purchases.Values
Log(p.ProductId & ", Purchased? " & (p.PurchaseState = p.STATE_PURCHASED))
Next
End If
End Sub

Sub Button1_Click
manager.RequestPayment("ka_family","inapp","payment")
End Sub
 
Top