• Godot Help
  • google billing problem - user cancelled ?

hey guys so when i press my purchase button it gives me an error code 1 this time which means that the user cancelled the purchase. i dont know how this is possible really because all im doing is pressing a button to purchase so how could i purchase and cancel the order at the same time. here is the output from the command line debugger

here is the purchase button code

i know you have to query the skus before making a purchase but im doing that already.

any input would be massively appreciated. Thanks in advance.

No real idea, but I wonder if it's because you don't wait for the proper response from the server so it falls back on erroring out as if the 'purchase' was canceled? i.e. the order processing needs to take a bit of time, but you check for the response.status immediately.

I could very well be completely wrong tho.

    Megalomaniak as per the documentation, im checking if its connected to the api with payment.isRead() and its coming back true so no problems there. the first time i press the purchase button immedietly after starting the application it comes back false but then it goes back to being true the second time i press it immedietly after.

    im doing it the way ive seen in every tutorial and how it says in the docs so.

    im banging my head agaisnt the wall with this right now i mean its just a few lines of code.

      Awesome! Thanks for following up with the solution.