How can I use the built-in GodotPayment module?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nero
:warning: Old Version Published before Godot 3 was released.

I’ve already asked a question about an interface in Godot that gets a connection to this module:
https://www.godotengine.org/qa/5125/develop-interface-godot-allows-google-play-pruchases-project

I tried to import and enable it in engine.cfg with:

[android]
modules=“org/godotengine/godot/GodotPaymentV3”

Then I tried to use this interface written with GD-Script:

But when it calls the singleton (yes I put the whole thing into the AutoLoads) with Globals.get_singleton(“GodotPayments”) I just get a null instance. So there is no connection.
How can I enable the module GodotPaymentV3 located at org/godotengine/godot/GodotPaymentV3 and how can I use it?
My game has an In-App-Store and needs connections to Google Play for in-app-purchases.

did you tested it on android device?

volzhs | 2016-06-12 01:27

:bust_in_silhouette: Reply From: Nero

When I tried it the first time I also got a null instance on Android. Now I started the whole thing from scratch and suddenly I have an instance [JNISingleton]. Thank you! It doesn’t work on Windows.
Now I hope I can use this module with the interface…