[SOLUCIONADO]
Hi,
I have a problem testing in-app billing v3.
Everything works fine, I can buy a product, I even receive a paypal charge, but when the purchase ends, the google payments window closes and the app returns to activity main. It doesn't launch the PurchaseCompleted event.
The code I use is based on the forum example, I use an exclusive activity for purchases, and I do not use a class.
Although I have seen in the forum that someone had similar problems, I have not found a solution and I'm not able to solve it.
Can somebody help me?
Thank you very much.
This is the log since the start of the purchase.
Hi,
I have a problem testing in-app billing v3.
Everything works fine, I can buy a product, I even receive a paypal charge, but when the purchase ends, the google payments window closes and the app returns to activity main. It doesn't launch the PurchaseCompleted event.
The code I use is based on the forum example, I use an exclusive activity for purchases, and I do not use a class.
Although I have seen in the forum that someone had similar problems, I have not found a solution and I'm not able to solve it.
Can somebody help me?
Thank you very much.
This is the log since the start of the purchase.
B4X:
CStarting async operation: launchPurchaseFlow
Constructing buy intent for basic, item type: inapp
requestCode = 2
** Activity (compras) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Arrived: 2, 2
Ending async operation: launchPurchaseFlow
Successful resultcode from purchase activity.
Purchase data: {"orderId":"GPA.3307-0920-55555-55555","packageName":"com.demo.demo","productId":"basic","purchaseTime":1503774458931,"purchaseState":0,"developerPayload":"to buy a basic pack","purchaseToken":"ekbmfmjjkbchm……"}
Data signature: IULavJNRGqZvDMNn….., INAPP_PURCHASE_DATA={"orderId":"GPA.330……","packageName":"com.demo.demo","productId":"basic","purchaseTime":1503774458931,"purchaseState":0,"developerPayload":"to buy a basic pack","purchaseToken":"ekbmfmjjk……"}, com.google.android.finsky.analytics.LoggingContext.KEY_ACCOUNT=user@gmail.com, com.google.android.finsky.analytics.LoggingContext.KEY_USE_DEFAULT_LOGGER=false, INAPP_DATA_SIGNATURE=IULavJN…….}]
Expected item type: inapp
Purchase signature successfully verified.
compras$ResumeMessagerun (java line: 300)
java.lang.Exception: Sub manager_purchasecompleted signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:181)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:163)
at anywheresoftware.b4a.inappbilling3.BillingManager3$3.onIabPurchaseFinished(BillingManager3.java:99)
at anywheresoftware.b4a.objects.IbHelper.handleActivityResult(IbHelper.java:497)
at anywheresoftware.b4a.objects.IbHelper$2.ResultArrived(IbHelper.java:382)
at anywheresoftware.b4a.BA$4.run(BA.java:523)
at anywheresoftware.b4a.BA.setActivityPaused(BA.java:408)
at com.demo.demo.compras$ResumeMessage.run(compras.java:300)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
** Service (starter) Create **
** Service (starter) Start **
Last edited: