Android Question LaunchBillingFlow throws an error?

ilan

Expert
Licensed User
Longtime User
hi

i am using GooglePlayBilling in my app for a subscription (monthly) and a one time payment item.
it worked fine in the past but today after a user told me that it crashes i tried and indead it crashes when i try to perform the subscription purchase.

it is happening in the LaunchBillingFlow Sub:


this is the error:

Logger connected to: samsung SM-X115
--------- beginning of main
Copying updated assets files (125)
*** Service (starter) Create ***
Error occurred on line: 8769 (Main)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at www.sagital.mysalarynew.main._launchbillingflow(main.java:8442)
at www.sagital.mysalarynew.main$ResumableSub_btnSend_Click.resume(main.java:8047)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resumeAsUserSub(DebugResumableSub.java:48)
at anywheresoftware.b4a.shell.Shell.runGoodChain(Shell.java:475)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:293)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:275)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:150)
at anywheresoftware.b4a.BA$2.run(BA.java:395)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: java.lang.IllegalArgumentException: offerToken can not be empty
at com.android.billingclient.api.BillingFlowParams$ProductDetailsParams$Builder.setOfferToken(com.android.billingclient:billing@@7.0.0:2)
... 23 more

it worked in the past when i uploaded the build but now it stop working.
what could be the reason?

i am using b4a 13.30

thanks
 
Top