I appear to have successfully managed to get InApp billing working and even got some money!
However, Crashlytics is showing a fatal error that appears to be related to billing that I can't explain:
Looking at my code, which I copied from the Billing example, I wonder whether the code
Should instead be
I have changed the "android.test" to the correct InApp text.
Thanks
However, Crashlytics is showing a fatal error that appears to be related to billing that I can't explain:
In com.android.billingclient.api.ProxyBillingActivity.onCreate (com.android.billingclient:billing@@3.0.1:13)
Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference
Looking at my code, which I copied from the Billing example, I wonder whether the code
Private Sub HandleAdsPurchase (p As Purchase):
If p.Sku.StartsWith("android.test") = False And billing.VerifyPurchase(p, BILLING_KEY) = False Then
Should instead be
Private Sub HandleAdsPurchase (p As Purchase):
If (p.Sku.StartsWith("android.test") = False) Or (billing.VerifyPurchase(p, BILLING_KEY) = False) Then
I have changed the "android.test" to the correct InApp text.
Thanks