HOME.en.md
RuStore Godot Plugin for Accepting Payments
The RuStoreGodotPay plugin helps integrate the payment mechanism into your project. Godot Engine 4.3+ versions are supported.
Installing the Plugin
-
Go to the Releases section of the project repository on GitFlic.
-
Download the
RuStoreGodotPay.zipandRuStoreGodotCore.zipartifacts from the selected release. -
Unpack the downloaded archives into the
addonsfolder at the root of your Godot project so that the following structure is obtained:
📁 your_project
└─ 📁 addons
├─ 📁 RuStoreGodotPay
│ ├─ plugin.cfg
│ ├─ plugin.gd
│ ├─ RuStoreGodotPay.aar
│ ├─ RuStoreGodotPay.gd
│ └─ ...
└─ 📁 RuStoreGodotCore
├─ plugin.cfg
├─ plugin.gd
├─ RuStoreGodotCore.aar
├─ RuStoreGodotCore.gd
└─ ...
- In the project settings, on the Modules tab, check the RuStore Godot Pay and RuStore Godot Core modules.
SDK Initialization
Add the following metadata to AndroidManifest.xml inside the <application> tag:
<meta-data android:name="console_app_id_value" android:value="ВАШ_ID_ПРИЛОЖЕНИЯ" />
<meta-data android:name="internal_config_key" android:value="godot" />
<meta-data android:name="sdk_pay_scheme_value" android:value="yourappscheme" />
console_app_id_value— application identifier from the RuStore Console. The application ID is the digits in the URL betweenapps/and/versions.internal_config_key— always has the valuegodot.sdk_pay_scheme_value— the deeplink scheme.
The values can be moved to a resource file. See an example in godot_example/android/build_example/res/values/rustore_values.xml.
Handling Deeplink
A deeplink is required to return the user from a third-party payment app back to your app.
Create a RuStoreIntentFilterActivity class and add an intent-filter to the manifest. A ready-made example is godot_example/android/build_example/src/com/godot/game/RuStoreIntentFilterActivity.java.
For more details on deeplink configuration, see the online guide.
Working with the SDK
Start exploring the library documentation with the methods of the RuStoreGodotPay class. Or use the online guide.
Technical Support
Additional help is available in the RuStore documentation and via email support@rustore.ru.
Distribution Terms
This software is distributed under the MIT license. See MIT-LICENSE.