Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The item you were attempting to purchase could not be found" #14

Open
Lokix84 opened this issue Sep 6, 2024 · 6 comments
Open

"The item you were attempting to purchase could not be found" #14

Lokix84 opened this issue Sep 6, 2024 · 6 comments

Comments

@Lokix84
Copy link

Lokix84 commented Sep 6, 2024

hello i am new to this plugin and i guess in app purchases in general. i mostly copied what the billing example was doing to get things going. the queryProductDetails call is returning the items i am expecting.. but when i try to do a purchase call for one of those items i get the error mentioned in the title with a response code of 4. i know i have to be doing something wrong. i am just not sure what quite yet.

@Anirudh-gitprojects
Copy link

Hey @Lokix84 did you manage to find a solution as I am also getting the same error. It works as long as I download the public release in test mode but shows the actual purchase not the test purchase. Kindly let me know if you solved the issue. Thanks!

@code-with-max
Copy link
Owner

@Lokix84 @Anirudh-gitprojects
Can you show here the part of the code that makes the purchase?

@Anirudh-gitprojects
Copy link

Anirudh-gitprojects commented Sep 14, 2024 via email

@Lokix84
Copy link
Author

Lokix84 commented Sep 15, 2024

@code-with-max / @Anirudh-gitprojects i haven't gone back to it in a minute. was using the following from the demo to test out the idea.

func do_purchase(id: String, is_personalized: bool = false):
if billing and billing.isRead():
Utilities.add_log_message("Attempting to purchase '" + id + "'")
billing.purchase([id], is_personalized)
else:
Utilities.add_log_message("Billing is not available while attempting to purchase: " + id)

Edit: realized i didn't tag anyone

@tanahairstudio
Copy link

@Anirudh-gitprojects Hi Anirudh, I found your discussion on udemy on Godot mobile app lecture. I used the solution you wrote. However, I keep getting "Error, The item you were attempting to purchase could not be found". How did you solve the problem? Kindly share with me, please? Many thanks

@Anirudh-gitprojects
Copy link

Anirudh-gitprojects commented Nov 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants