C
C
Crebor2021-11-03 21:15:06
Unity
Crebor, 2021-11-03 21:15:06

Why is the test purchase returned after a few minutes?

Good day to all.
Created a test no ads in beta application via unity IAP. The test is successful. Received a test email about payment. But after a few minutes, a letter arrives about canceling the purchase, because I did not confirm it. The IAP button code is as follows:

public void RemoveAds(){
        if (PlayerPrefs.HasKey ("ads") == false)
        {
           PlayerPrefs.SetInt("ads", 0);
           
        }
           
    }

Do you need some more confirmation in the code for Google?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Crebor, 2021-11-03
@Crebor

Found a solution to the problem. There was no "Consume Purchase" checkbox in the IAP Button.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question