Guga Thome Member Licensed User Longtime User Jan 22, 2018 #1 Hi, Could someone help me please with this error? It occurs when calling the RequestPayment method. Code: Copy Dim MyStore As Store MyStore.Initialize("MyStore") If MyStore.CanMakePayments = True Then Main.hd.ProgressDialogShow("Iniciando compra no app ...") MyStore.RequestPayment("br.com.gugs.socialfobia.12meses") ... The app ends with the following message in the log: Tks,
Hi, Could someone help me please with this error? It occurs when calling the RequestPayment method. Code: Copy Dim MyStore As Store MyStore.Initialize("MyStore") If MyStore.CanMakePayments = True Then Main.hd.ProgressDialogShow("Iniciando compra no app ...") MyStore.RequestPayment("br.com.gugs.socialfobia.12meses") ... The app ends with the following message in the log: Tks,
Erel B4X founder Staff member Licensed User Longtime User Jan 23, 2018 #2 Is Mystore a global variable? Upvote 0
Guga Thome Member Licensed User Longtime User Jan 23, 2018 #3 No. It's only on a Sub! So, Is it need to by a global variable? tks! Last edited: Jan 23, 2018 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 23, 2018 #4 Might be related. Try it with a global variable. With a local variable the object might be released before the event is raised. Upvote 0
Might be related. Try it with a global variable. With a local variable the object might be released before the event is raised.
Guga Thome Member Licensed User Longtime User Jan 24, 2018 #5 Tks Erel!!! Defining Mystore as a global variable has been fixed. Upvote 0