question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

launchPurchaseFlow for a subscription will return an error, but still charge the user for the subscription.

See original GitHub issue

Previously I had been running subscription purchases through the IABHelper.java’s - launchPurchaseFlow. I did not realize that this was actually running a purchase for ITEM_TYPE_INAPP items. Regardless, this used to function correctly, and the subscriptions were being purchased correctly.

This week I got a report from my client that there was an issue with subscription purchases. It seems that now purchasing a subscription while using launchPurchaseFlow will return an error (“IAB returned null purchaseData or dataSignature”), despite the user actually being charged for the subscription. I now understand that I should be calling launchSubscriptionPurchaseFlow (and have updated my project accordingly), however, this seems like a bug (having an error returned while still being charged for the item) that should be addressed.

I realize that this may actually be a bug on the server side of the equation, but figured I would post here to see if this has been documented already, before creating an issue on issuetracker.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
d-schmidtcommented, Oct 25, 2017

These samples and moderation here are a mess. Why do the Google employees here not know and recognize the TrivalDrive v1 example anymore? It was the recommended implementation for years and until a few weeks ago! It is like it vanished from the hive minds memory.

We are trying to give you money Google!

The official docs recommended IABHelper.java.

@gorgon I don’t get your confusion. In his very first line @ssawchenko says IABHelper.java. He clearly is using the ‘old’ TrivalDrive v1. I assume you didn’t start working on this last week.

It is like #45 In June: @dec1: ‘there is an NPE bug in the TrivalDrive example’ @netomarin: ‘we will look into it’ August: @netomarin: ‘still looking into it’ End August: @gorgon ‘It is not a bug. You need to do a retry as shown in TrivalDrive v2’ October: @netomarin: ‘It is not a bug in the sample.’

What is going on? It is a bug in the V1 sample. Retrying the BillingClient is no solution. But I guess pretending the recommended method of the last years doesn’t exsist, is easier.

Why is this so frustrating.

0reactions
pfmaggicommented, Jan 10, 2019

Please refer to ClassyTaxy And Trivial Drive 2.

Closing as obsolete.

Please reopen if you think this issue is still relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems with subscriptions - Android - Google Play Help
To get a refund if the charge was made accidentally by a friend or family member, follow the steps below: On your computer,...
Read more >
Error when you create multiple subscriptions - Microsoft Learn
When you try to create multiple Azure subscriptions in a short period of time, you might receive an error stating: Subscription not created....
Read more >
Subscription error - Microsoft Power BI Community
Hello, I try to make a subscription but the system return the next error: Something went wrong. Please try again later. With next...
Read more >
Sell subscriptions | Google Play's billing system
When a subscription is cancelled but not yet expired, it is returned from ... The user is immediately charged for a full billing...
Read more >
Help! Help!Help! with In App Billing API | B4X Programming Forum
I released my application and got like 4 to 5 users who report that my app does not unlock when they donated. I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found