In-app purchases do not return status on Android

Hello!

My cross-platform (iOS and Android) application includes one in-app purchase.

The algorithm is as follows:

    

 1. Performing initialization when start the application:

         if store.target == “apple” then

             store.init( “apple”, transactionListener)

            elseif store.target == “google” then

              store.init( “google”, transactionListener )

             restoring = true

             timer.performWithDelay( 1000, restore() )

         else

             print(“In-app purchases are not supported on this system/device.”)

         end

 2. When you click «Buy» the purchase is made, but **transactionCallback** returns no status.

 3. As the status is not returned, I am not able to remove the ad from application

 4. If you click «Buy» again, Google says: «You already have this application» and **transactionCallback** returns the status «failed»

 5. If there is no internet connection when clicking «Buy», status «failed» also returns.

 6. Option store.restore() does not work at all!

All of the above works fine on iOS!!!

What is the problem?

hi,

I have the same problem, have you solved?

Hi @shadrak,

The original post is almost a year old, so we will definitely need more details on your actual case and your actual code. There could be any number of things in the code which are causing this to malfunction.

Best regards,

Brent

hi,

I have the same problem, have you solved?

Hi @shadrak,

The original post is almost a year old, so we will definitely need more details on your actual case and your actual code. There could be any number of things in the code which are causing this to malfunction.

Best regards,

Brent