HOME.en.md


RU EN
🏠 Home ❮ Back

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

  1. Go to the Releases section of the project repository on GitFlic.

  2. Download the RuStoreGodotPay.zip and RuStoreGodotCore.zip artifacts from the selected release.

  3. Unpack the downloaded archives into the addons folder 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
      └─ ...
  1. 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 between apps/ and /versions.
  • internal_config_key — always has the value godot.
  • 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.