LogoLogo
  • 🕴️ QUICK START GUIDE
  • DASHBOARD
    • Management
      • Add a new Game
        • Create a Game
        • Set-Up
        • Review Guidelines
      • Version control
        • Add a Build
        • Handle branches
        • Upgrade Versions
      • API Keys
    • NFT Collections
      • Add a Collection
      • Staking Support
    • Beta Codes
      • Create a Beta Code
    • Tournaments
      • Set Up
      • Create Tournament
    • In-App Purchases
      • Developer
        • Set up your Store
        • Submit Product
        • Client Integration
        • Handle Post-Payments
      • Payment Gateways
      • Review Guidelines
    • Elixir Invisible Wallet
      • Gas Manager
        • Create Gas Manager
        • Handle Balances
    • Reward Center
      • Game Quests
        • Add a Stat
        • Create a Quest
        • Test Your Quest
        • Submit your Quest
        • Update Progress
        • Review Guidelines
  • Elixir Gamer Services
    • 🏁Kick-off
    • Unity
      • Getting Started
        • Overview
        • Updates
          • GitHub
          • Unity Asset Store (Coming Soon)
      • Overlay
        • Overlay Actions
        • Event Simulator
          • SDK Events
      • Authentication
        • Desktop
        • Mobile
      • Reference
    • Unreal Engine
      • Getting Started
        • C++ Project
        • Blueprints Project
  • API
    • Elixir REST API
      • 🖥️Desktop Auth
      • 📱Mobile Auth
      • 🔐RSA Signature
        • 🔢C# Example
        • 🔢Node.js Example
      • 🧔User
      • 👾NFTs
      • 🏆Tournaments API
      • ❓Game Quests
    • How To
      • Link Elixir account to a game API account
Powered by GitBook
On this page
  • In-Game Purchasing
  • Invisible Wallet

Was this helpful?

Export as PDF
  1. Elixir Gamer Services
  2. Unity
  3. Overlay

Overlay Actions

PreviousOverlayNextEvent Simulator

Last updated 9 months ago

Was this helpful?

Once initialized, the following functionality is available:

In-Game Purchasing

Checkout

Trigger checkout of an NFT payable with credit card or a crypto wallet by calling Overlay.Event.Checkout:

Overlay.Event.Checkout("MY_ITEM_SKU")

Once initialized, the result of the checkout will be returned as an incoming message via the delegate.

Only one checkout process can be started at a given time. Calling Checkout a second time before getting the result will interrupt a previous checkout process.

Invisible Wallet

GetWallet

The getWallet function in the SDK returns the public wallet of the user. The user might be asked to go through a verification process before the wallet is returned.

The result of the operation will be returned as an incoming event via the delegate.

SignTypedData

Once you have built an ethereum typed data, you can ask the user to sign it by using signTypedData function in MetaKeep SDK. The function expects a non-empty reason which is shown to the user at the time of typed data signing. This API is compliant with the latest EIP-712 spec and is a drop in replacement for Metamask's signTypedData_v4 API.

The first parameter (message) should be a stringified JSON of the EIP-712 compliant payload.

Overlay.Event.SignTypedData("{ ... }", "Do Some Action")

Once initialized, the result of the checkout will be returned as an incoming event via the delegate.

OnChekoutResult
OnGetWalletResult
OnSignTypedDataResult